On 06/02/2018 01:07 AM, Andrei Borzenkov wrote:
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".
OK, so what? The "real" group id is users(100). That's what happens. What does that have to do with group membership of the user being lost? Mark -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org