Users Flashcards
Three types of accounts
root, standard user and service
command to edit the /etc/sudoers file, verifies for errors before commiting changes
visudo
check existing sudoers file for errors
visudo -c
check a sudoers file in a different location than the default
visudo -f {file location} -c
check sudoers file in strict mode, any aliases that are used before being defined will result in errors
visudo -s
output the sudoers file to a specified file in JSON format
visudo -x {filename}
command to create user accounts and configure basic settings (does not create a password)
useradd [options] [user name]
location where account is stored
/etc/passwd
a new account is configured according to options in this file
/etc/login.defs
Account home directory is populated with files from this directory
/etc/skel
useradd option for comment (usually used as field for user’s name)
-c
useradd option for expiration date
-e
useradd option set default shell
-s
useradd option view default config for new users
-D
command used to create a password for a new user created with useradd command
passwd