Stefano Lattarini <stefano.lattar...@gmail.com> writes: >>From experimenting, I've found out that bash (4.2.20), when invoked > as "sh", doesn't reset the effective user id to the real user id, > even if called *without* the '-p' option.
How did you test that? # ls -l sh -rwsr-xr-x 1 nobody root 755512 30. Okt 17:03 sh # ./sh -c id uid=0(root) gid=0(root) groups=0(root) # ./sh -p -c id uid=0(root) gid=0(root) euid=65534(nobody) groups=65533(nobody),0(root) Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."