LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-12-2004, 07:48 PM   #1
The_Nerd
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 540

Rep: Reputation: 32
userdel command... should I run it?


Hi!

I screwed up in adding a user to my server.
My users folder (same as "home") is /mnt/ftp, so... a user would be /mnt/ftp/user

Now I typed:
"adduser -d /mnt/ftp user"

So... if I type "userdel user" will all my other user's files (and home folders) be deleted?

Thanks
 
Old 09-12-2004, 08:00 PM   #2
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
userdel won't delete home directory files unless you specifically tell it to with userdel -r, so you should be fine. If you're still in doubt, make a backup before you run it...
 
Old 09-12-2004, 08:31 PM   #3
The_Nerd
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 540

Original Poster
Rep: Reputation: 32
Thanks! To be safe, I just unmounted "/mnt/ftp" so that it couldn't delete anything!

 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Command to run another command against a list of files psweetma Linux - General 3 11-09-2005 05:29 PM
bash: userdel: command not found dwdrumrboy Linux - Newbie 9 04-16-2005 11:47 AM
removing users with userdel linuxtesting2 Linux - Newbie 1 09-15-2004 01:35 AM
can't 'userdel' OR How to fix a corrupt utmp? Plauderer Linux - General 3 09-03-2004 11:50 AM
userdel: unable to lock password file asc3ndant Linux - General 1 06-20-2003 01:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration