LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-13-2013, 06:01 PM   #1
linuxmantra
Member
 
Registered: Dec 2013
Posts: 113

Rep: Reputation: Disabled
Problem in deleting user account


Initially I created a user account named 'user3' later on I deleted simply using userdel command. When I again tried to make a user account with same name as user3, following message appeared:

Creating mailbox file: File exists

I came to know that best way to delete the user account is userdel -r user_name. Now I get above message every time when I try to create account named "user3".

Any suggestion, How can I get rid of these problem???
 
Old 12-13-2013, 06:21 PM   #2
linuxmantra
Member
 
Registered: Dec 2013
Posts: 113

Original Poster
Rep: Reputation: Disabled
I solved the problem.....
 
Old 12-13-2013, 06:56 PM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
please tell us how.
posting on a forum always goes both ways - others might benefit from your solution.
and please mark the thread as solved.
 
Old 12-14-2013, 12:04 PM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
"Creating mailbox file: File exists" is more a warning - the easy fix is just to delete the file.

To fully clean out a user requires "userdel -r <username>". This deletes the users home directory (and all the file), and deletes the users mail file. Without the -r, it only removes the login name and entries from the groups file. Frequently, this is preferred because somebody usually has to go through the files and decide what to keep, or to discard. That includes the mail file...

So leaving these around generates warnings about things that exist, that possibly shouldn't.
 
  


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
[SOLVED] deleting user account newk Linux - Newbie 7 11-27-2009 06:05 AM
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 10:02 AM
X wont start after deleting user account RockmanExe Mandriva 7 03-30-2004 08:03 PM
Deleting a user account from prompt lozz1978 Linux - Newbie 8 01-15-2004 07:43 AM
Deleting account Jose Muņiz LQ Suggestions & Feedback 2 07-09-2003 02:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:06 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