Modify & Delete Users

Modifying a user

We’ve created a new user, studenth, who has default permissions for a standard user.

Add him to the root group using usermod:

usermod –G root studenth

 

userdel – Deleting a user

Options:

-r (remove home directory)

Example: To remove the user ‘roger’ and his home directory

userdel -r roger