LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 07:01 PM   #1
linuxmantra
Member
 
Registered: Dec 2013
Posts: 104

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, 07:21 PM   #2
linuxmantra
Member
 
Registered: Dec 2013
Posts: 104

Original Poster
Rep: Reputation: Disabled
I solved the problem.....
 
Old 12-13-2013, 07:56 PM   #3
ondoho
Senior Member
 
Registered: Dec 2013
Posts: 4,176

Rep: Reputation: 837Reputation: 837Reputation: 837Reputation: 837Reputation: 837Reputation: 837Reputation: 837
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, 01:04 PM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,604

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
"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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 07: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 11:02 AM
X wont start after deleting user account RockmanExe Mandriva 7 03-30-2004 09:03 PM
Deleting a user account from prompt lozz1978 Linux - Newbie 8 01-15-2004 08:43 AM
Deleting account Jose Muņiz LQ Suggestions & Feedback 2 07-09-2003 03:23 PM


All times are GMT -5. The time now is 08:56 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration