Thanks! I did that and got the following output:
$ awk -F: '{print $1}' /etc/passwd
root
daemon
bin
sys
adm
lp
uucp
nuucp
smmsp
listen
nobody
noaccess
nobody4
bb
webservd
test
guest
It doesn't tell me the rights of the accounts though. It just lists the accounts. Also, how do you disable or delete an account?
Main Topics
Browse All Topics





by: omarfaridPosted on 2009-02-10 at 09:15:29ID: 23602618
users are listed in /etc/passwd file. The first field of each line is the user name. you may get names by running
awk -F: '{print $1}' /etc/passwd
users are grouped in groups and the fourth field in this file is the group id to which the user belongs
groups are defined in /etc/group file. this file shows the other groups to which the user belongs