Managing Users and Groups Flashcards
/etc/passwd file contents
Stores User account information
/etc/shadow file contents
Hashed passwords, password requirements and expiration information
chage command
change age command, used to control password, expiration, expiration warnings, inactive days, and other information for existing accounts
Usermod -aG command
Adds user to a group and keeps them in their existing groups
usermod -l
changes the user’s login name
usermod -c
sets the comment field
List two commands to lock a user
passwd -l {user name}
Usermod -L {user name}
List two commands to unlock a user
passwd -u {user name}
Usermod -L {user name}
/etc/group file contents
storage and information location about all the groups on a system
Groupadd command
creates a group
Groupmod command
Used to change the group’s own attributes
Groupdel command
Delete groups from the /etc/group file
Groupmod -g command
change the group ID
Groupmod -n command
rename a group
whoami command
Used to display the user name with which you are logged in to the system