Mailinglist Archive: opensuse (1352 mails)

< Previous Next >
Re: [opensuse] Problem with suid pgms on Leap-15.0
01.06.2018 20:20, Mark Hounschell пишет:
...

Then as root:
#chown root ./a.out
#chgrp root ./a.out
#chmod +s ./a.out

Then as user
#./a.out

markh

uid=5076(markh) gid=100(users) groups=100(users)

Once the pgm is owned by root and suid, I lose all my group memberships
for some unknown reason. It is not proper to me.


man bash

If the shell is started with the effective user (group) id not equal to
the real user (group) id ... effective user id is set to the real user id.

It should actually read "effective user (group) id is set to real user
(group) id".

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References