Usernames are typically
8 characters
Lowercase
Don’t use special characters
Encrypted passwords are stored in
etc/shadow, only readable by root
The shell of an account can be
A cli application
useradd
Let’s you create a new user with certain parameters, including
-c comment
-m home directory
-s/shell/path the path to the shell
Eg:
useradd -c John Riverton -m /etc
userdel
Delete a user
userdel -r alex
Removes home directory
usermod
-c sets a comment for the user
-g sets the default group
-G adds additional groups
- s/shell/path sets the shell path
groupadd
Options include:
-g to set the GID