Install scriptlets source root users .bashrc when pacman is run through sudo

brainpower brainpower at mailbox.org
Sat Nov 6 20:08:15 UTC 2021


Am 06.11.21 um 19:15 schrieb Andrew Gregory:
> bash thinks it's being run remotely because we connect to the child over
> sockets.

oh, right, that makes sense... I knew I was missing something rather obvious. :/
(I shouldn't have just skimmed the manpage after all... I missed it b/c I was only looking for the word "interactive", which isn't in that paragraph)


But what I'm still not quite getting is,
what's the difference of pacman being run by sudo vs. directly?
Shouldn't bash also think the sockets were remote if pacman is not run using sudo?

But it probably can detect somehow that it runs inside a interactive zsh when pacman is run directly,
while there is no shell running between sudo and pacman when running it using sudo...
or something like that.

Well mystery somewhat solved, thanks for pointing me in the right direction.

-- 
regards,
brainpower
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/pacman-dev/attachments/20211106/fe392e12/attachment.sig>


More information about the pacman-dev mailing list