linux users, groups



more user-friendly – adduser, deluser

list of usernames of users currently logged in

show who is logged on, with info

show who and what they are doing

your user id, the user currently logged in, in this session

list of all users in the system
– is in the file /etc/passwd
to list just the user names use
$awk -F: '{print $1}' /etc/passwd

print user identity and ids of all groups the user belongs to

prints the groups a user is a member of


password management
super user can use the same command to set passwords and other options for other users
especially useful with the -e option that sets the password to expire immediately, forcing the user to change password the next time they login
$passwd -e


Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.