Training

When: Every first Sunday of every month -get a ticket- from $15 (Click Here).

Wednesday, February 24, 2016

A command to list all users? And how to add, delete, modify users? - Ask Ubuntu

To remove/delete a user, first you can use:



sudo userdel username
Then you may want to delete the home directory for the deleted user account :



sudo rm -r /home/username
(Please use with caution the above command!)



To modify the username of a user:



usermod -l new_username old_username
To change the password for a user:



sudo passwd username
To change the shell for a user:



sudo chsh username
To change the details for a user (for example real name):



sudo chfn username




A command to list all users? And how to add, delete, modify users? - Ask Ubuntu

No comments: