Web Hosting Talk







View Full Version : Deleting a User via Telnet


bizee
12-01-2001, 02:51 PM
whats the command to delete a user via telnet, i am learning how to administer my own servers.

smartbackups
12-01-2001, 03:36 PM
man userdel

seriously it tells you everything you need to know. Get linux in a nutshell that will help lots.

basically the command is

userdel -r username * this will delete all files in home directory


Note the user can't be logged in for this work correctly.

teck
12-01-2001, 03:47 PM
Check /etc/passwd to make sure they're out of there too.

cperciva
12-01-2001, 04:00 PM
FreeBSD's rmuser safely handles the case of a user being logged in.

bobcares
12-02-2001, 09:43 AM
HI!
userdel is the correct command.
However if you have a control panel. Remove the user from that database too..
Also userdel works only if you have su access and the path of userdel is
/usr/sbin/userdel

Have a great day :)

regards
amar