On Sun, 26 Oct 2008, Yannick Cadin wrote:

> - first in the stat command. Only with the -x option. If you execute stat -x
> on /tmp or /usr/bin/passwd parameters for example, the numeric representation
> of mode is wrong. The "special" bits are always 0. No suid-bit, no sticky
> bit!


Although this does seem wrong to me, the code does it deliberately. I'm
not sure why, it may be to be compatible with Linux (as the -x option is
documented in the man page as giving "Linux format" output).

> - Second. Because of a missing suid-bit on the newgrp command, this one is
> not really usable for users other than root.


This is deliberate, and is docimented in make.conf(5). Because almost
nobody uses newgrp(1) and because it has the potential to be a security
hole, it's not installed setuid by default. If you want it installing
setuid, set ENABLE_SUID_NEWGRP in make.conf.

Gavin
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/lis...freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"