nj0x_a
Last Updated: February 25, 2016
·
521
· mehikmat
587e337464192cb0425836412f98970a

Adding and Deleting user in Ubuntu

Add New User

$ sudo useradd user_name

Delete Existing User

$ sudo userdel user_name

$ sudo userdel -r user_name [to delete user's home dir too]

Logout loged in user

$ sudo pkill -KILL -u user_name
Say Thanks
Respond

2 Responses
Add your response

15002
Vk0iwisl

Or just use adduser (http://manpages.ubuntu.com/manpages/trusty/en/man8/adduser.8.html) and deluser (http://manpages.ubuntu.com/manpages/trusty/en/man8/deluser.8.html).
They are friendlier front ends to the userdel and groupdel programs, removing the home directory as option or even all files on the system owned by the user to be removed, running a custom script, and other features.

over 1 year ago ·
15007
587e337464192cb0425836412f98970a

Yes that's also.

over 1 year ago ·