- /etc/login.defs is the configuration file for login parameters, containing some defaults that are used for the commands below.
- /etc/adduser.conf contains the default configuration and settings for creating new users with adduser
- The default files for new users is stored in /etc/skel, though this can be changed in /etc/adduser.conf
- The user database is stored at /etc/passwd
- User passwords are stored in /etc/shadow
- Group info is stored at /etc/group
sudo awk -F':' '$2 ~ "\\$" {print $1}' /etc/shadow