User Management Flashcards
add a user in Ubuntu server, run the following command(s):
sudo adduser username
delete a user account and its primary group, run the following command(s):
sudo deluser username
To temporarily lock a user account, run the following command(s):
sudo passwd -l username
to unlock a user account, run the following command(s):
sudo passwd -u username
to add a personalised group, run the following command(s):
sudo addgroup groupname
to delete a personalised group, run the following command(s):
sudo delgroup groupname
to add a user to a group, run the following command(s):
sudo adduser username groupname
to list groups, run the following command(s):
groups
to change one’s password, run the following command(s):
passwd
to change other user’s password, run the following command(s):
sudo passwd username
To view the current status of a user account, run the following command(s):
sudo chage -l username
to change a user’s password expiration value, run the following command(s):
sudo chage username