Linux System Admin¶
A user has a username, primary group and additional group.
/etc/passwd Contains one line for each user account. /etc/shadow Contains the password information in encrypted formatfor the system’s accounts and optional account aging information. /etc/group Defines the groups on the system. /etc/default/useradd This file contains a value for the default group, if none is specified by the useradd command. /etc/login.defs This file defines the site-specific configuration for the shadow password suite stored in /etc/shadow file.
|Add user to existing or new group||
|Add User to Primary Group||
|Set user password||
|Add User to Existing Group as secondary group||
||Group can be a list of multiple groups|
Add User as Sudo:
Add the user
uname to the sudo group, this will permit them to sudo.:
usermod -a -G sudo uname
Get info on user: