[Discuss] redhat user question

Richard Pieri richard.pieri at gmail.com
Tue Aug 6 15:57:12 EDT 2013


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.



More information about the Discuss mailing list