Eric Chadbourne wrote:
But I know this doesn't show everybody.  I've created users with no
home before.  Also how can I tell if a user has root permissions or

  getent passwd | grep -v foo

where foo is whatever not-interactive shell program you typically use (for example, /bin/false).

root users will have UID 0. There should be only one of these but sometimes there's an auxiliary UID 0 account. privileged users may be in the wheel group (assuming you have a wheel group) or in the sudoers file.

able to access other stuff such as /var/www?

Match the GID on the directory with the corresponding GID in /etc/group.

--
Rich P.
_______________________________________________
Discuss mailing list
[email protected]
http://lists.blu.org/mailman/listinfo/discuss

Reply via email to