On Sun, Nov 03, 2002 at 03:50:52PM +0100, Gaël Le Mignot wrote: > Hello, > Does someone know why /bin/ids has the setuid-bit set ? > Since it works well without the bit too, why keep it ?
This is so that the ids program really really gets the authentication port of its parent, instead of its own dup. See the comment in ids.c: if (pid < 0) /* We get our parent's authentication instead of our own because this program is usually installed setuid. This should work even if it's not installed setuid, using the auth port as authentication to the msg_get_init_port rpc. */ pid = getppid (); The same comment seems to indicate that this is not really necessary. I wonder, too. Can anybody clear this up? There is also /bin/login, which doesn't need to be setuid if you have the password server set up and working (but you will be out of luck if it isn't). Thanks, Marcus -- `Rhubarb is no Egyptian god.' GNU http://www.gnu.org [EMAIL PROTECTED] Marcus Brinkmann The Hurd http://www.gnu.org/software/hurd/ [EMAIL PROTECTED] http://www.marcus-brinkmann.de/ _______________________________________________ Bug-hurd mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-hurd