Linux Add user problem

bepejet

Member
Jan 29, 2001
32
0
0
I have delete an account on the linux. But I cannot add a user with the same user name which is the same as the one I deleted. I know the old one has been marked somewhere in linux file. But I don't know how to get it, and make it work.
Any one has any advise? Thanks
 

jyrixx

Senior member
May 31, 2000
345
0
0
just add a user with a different name.
it doesnt answer your question, but it's a way around it.
 

Damaged

Diamond Member
Oct 11, 1999
3,020
0
0
How did you delete the user? userdel usually does it. If you just blew away their home directory then the user still has an entry in /etc/passwd. I would try userdel <username> if that doesn't work then see if you can delete the entry from the /etc/passwd file.
 

bepejet

Member
Jan 29, 2001
32
0
0
I just use userdel.. it delete the user. but I can not add another user with same name. There should be a way to do it. I want to learn it. Please anymore suggestions?
 

Cyph3r

Senior member
Jan 20, 2000
790
0
0
Do a &quot;grep <username> *&quot; in the /etc directory and see where else it might be. When you find it, delete it and you should be able to re-add the new account. Regards
 

BOFH

Senior member
Dec 31, 1999
456
0
0
also is the home directory of the user still in /home? if so stomp it
 

Damaged

Diamond Member
Oct 11, 1999
3,020
0
0


<< Do a &quot;grep <username> *&quot; in the /etc directory and see where else it might be >>


Err...grep the username from the /etc directory? I'm not quite sure what you're after there but I don't see what that would accomplish. If you want to grep for something then grep <username> /etc/passwd, but not in the entire directory.

To remove the ex-users former /home directory it should be as simple as rm -rf /home/<username>.

Now, for GOD's be very careful, VERYcareful whenever issuing a rm -rf because it will wipe everything, recursive, without asking.

I'll never forget the day I witnessed a dumbass issue rm -rf /. I tried to stop it but the fsking command had already wiped the kill command, so there wasn't much I could do at that point.
 

bepejet

Member
Jan 29, 2001
32
0
0
I did grep <username>.. the computer just keep run without answering.
Well, certainly I did remove the user director under /home.
But still I can't add it back again.
I think there is a file that contains the ids that have been generated everytime I add a user or delete a user.
I think the user would be delete from the systme login, but not for the file. It's one of those prevent reuse of deleted names. But I don't need this feature at home. And I want to figure out away of adding the name that I delete.
Help?

 

Damaged

Diamond Member
Oct 11, 1999
3,020
0
0
Of course it's going to sit there if you just do grep <username> it's waiting for you to tell it where (e.g. what file to grep from).

Did you grep <username> /etc/passwd?
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |