User Account Management Flashcards
What is the command to create a local user account?
useradd
What is the command to create a local group?
groupadd
What is the command to delete a user and it’s home directory?
userdel -r
What is the command to delete a group?
groupdel
What is the command to add a user to a supplementary group?
usermod -aG
What file contains a list of a systems user accounts?
/etc/passwd
What is the file that contains the list of groups of which users belong?
/etc/group
What file contains the hashed passphrase for user accounts and additional properties related to user account passwords?
/etc/shadow
In what file can you change password requirements for new users?
/etc/login.defs
What command can you use to change password requirements for a user?
chage {-m min days} {-M max days} {-d last day} {-I inactive} {-E expire date} {-W warn days} user
What options can you change for password requirements inside the /etc/login.defs in regards to newly created accounts?
PASS_MAX_DAYS 99999
PASS_MIN_DAYS 0
PASS_MIN_LEN 5
PASS_WARN_AGE 7
UID_MIN 1000 (can be changed to 10000 or 20000 to not be guessed so easily (security)