Creating and Deleting a User?

If none of the more specific forums is the right place to ask

Creating and Deleting a User?

Postby Carlosinfl » 2005-10-22 15:42

I sometimes will create a user account for someone so they can login to my box via FTP for one day and then after I see they have logged in to my ftp, I will remove their account. I was wondering if anyone can tell me after I delete the user account, is anything left maining on my Linux machine? Do I need to remove any special files or anything as I don't want clutter building up from many "temp" user accounts that I create.

Thanks for any assistance.
Carlosinfl
 
Posts: 889
Joined: 2005-02-05 06:11
Location: Orlando, FL

Postby Demetrius » 2005-10-22 16:50

If you use deluser to delete the user it will, by default, not delete the files associated with the user. With the switch --remove-home it will delete the user's home directory. With the switch --remove-all-files, deluser will remove all files owned by that user.

See man deluser for more information.
Demetrius
 
Posts: 49
Joined: 2005-09-15 17:20

Postby Carlosinfl » 2005-10-22 17:11

I don't understand your response...

If I use deluser whoever it will or will not delete all the directories associated with this user?
Carlosinfl
 
Posts: 889
Joined: 2005-02-05 06:11
Location: Orlando, FL

Postby Demetrius » 2005-10-22 17:57

No, by default it leaves files owned by the user behind. You can delete them yourself, or you can use deluser --remove-all-files username to have deluser delete the user's files for you.

Again, it is all explained in the man page. Try man deluser.
Demetrius
 
Posts: 49
Joined: 2005-09-15 17:20


Return to General Questions

Who is online

Users browsing this forum: No registered users and 50 guests

fashionable