8. Users and groups
UID
GID
GECOS
8.1. Paths
/etc/passwd
/etc/shadow
/etc/group
/etc/skel
8.2. useradd vs. adduser
8.3. Commands
Command |
Type |
Description |
---|---|---|
|
add a user or group to the system |
|
|
add a user or group to the system |
|
|
update group passwords in batch mode |
|
|
update passwords in batch mode |
|
|
remove a user or group from the system |
|
|
remove a user or group from the system |
|
|
create a new group |
|
|
delete a group |
|
|
modify a group definition on the system |
|
|
print the groups a user is in |
|
|
print real and effective user and group IDs |
|
|
show a listing of last logged in users |
|
|
begin session on the system |
|
|
write utmp and wtmp entries |
|
|
print user's login name |
|
|
write utmp and wtmp entries |
|
|
prevent unprivileged users from logging into the system |
|
|
politely refuse a login |
|
|
change user password |
|
|
the password file |
|
|
run a command with substitute user and group ID |
|
|
execute a command as another user |
|
|
create a new user or update default new user information |
|
|
delete a user account and related files |
|
|
modify a user account |
|
|
print the user names of users currently logged in to the current host |
|
|
edit the sudoers file |
|
|
Show who is logged on and what they are doing. |
|
|
show who is logged on |
|
|
print effective userid |
|
|
get and set user limits |
|
|
display (or do not display) messages from other users |
|
|
write a message to all users |
|
|
send a message to another user |