On Tue, Sep 17, 2002 at 11:09:32AM +0200, Michał Belczyk wrote: +> root@vanity ~#echo blah > /tmp/file +> root@vanity ~#chmod 604 /tmp/file +> root@vanity ~#ls -l /tmp/file +> -rw----r-- 1 root wheel 5 17 Wrz 11:02 /tmp/file +> +> diavul@vanity ~$id +> uid=666(diavul) gid=666(diavul) groups=666(diavul), 0(wheel) +> diavul@vanity ~$cat /tmp/file +> cat: /tmp/file: Permission denied
Yes, I decide to call setsugid() because this and this: /* * XXX A little bit lazy here. We could test if anything has * changed before crcopy() and setting P_SUGID. */ If "anything" really means "anything". -- Pawel Jakub Dawidek UNIX Systems Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am.
msg36926/pgp00000.pgp
Description: PGP signature