LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-27-2005, 01:14 AM   #1
cry0x
LQ Newbie
 
Registered: Feb 2005
Distribution: Archlinux 0.7
Posts: 24

Rep: Reputation: 15
Adding User?


Edit: Nevermind... it looks like it's just a problem with one user account.




How do I remove every trace of a user account off the computer?



For instance, say I made a user account name Bob

I installed programs, and put tons of stuff into the /home/Bob directory


Later, I decide to delete the user Bob.

Then, I recreate the user Bob... You would think that it would make an empty /home/Bob directory, but it makes the old /home/Bob directory, complete with everything in it before!


I guess something in my old /home/Bob directory was causing a lot of errors, so I just want to start fresh.

Last edited by cry0x; 02-27-2005 at 01:34 AM.
 
Old 02-27-2005, 01:35 AM   #2
spariggio82
Member
 
Registered: Apr 2004
Location: Camporotondo Etneo, Sicily
Distribution: SuSE 8.2 SuSE 9.1 Fedora C1 Slackware 10.1 Knoppix 3.9
Posts: 174

Rep: Reputation: 30
I don't know exactly the Slack procedure but after using adduser or useradd. If the system hasn't asked you type:

passwd <username>

This gives password to users to allow them to login. After create the homedirectory (if it is necessary) you should change the owner of the directory using:

chown <user> <file/directory>

for more information about these commands I suggest to use the man command!!!


Good luck
 
Old 02-27-2005, 01:56 AM   #3
PensJunkie
LQ Newbie
 
Registered: Jan 2005
Distribution: Server Application of Fedora 7 (at the moment), I have played with many others however.
Posts: 27

Rep: Reputation: 15
maybe
Code:
userdel -r
is what you are looking for
 
Old 02-27-2005, 02:00 AM   #4
cry0x
LQ Newbie
 
Registered: Feb 2005
Distribution: Archlinux 0.7
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by PensJunkie
maybe
Code:
userdel -r
is what you are looking for

I do that, but when I make a new user with that name again, the /home/user directory has everything back in it again.


So... that user's settings are saved somewhere other than /home/user.


Interesting.


I could work around this by just making a new name... but that old name was ME (cry0x)... been using it for everything for years... so I can't think of anything else to use as a new name
 
Old 02-27-2005, 12:37 PM   #5
PensJunkie
LQ Newbie
 
Registered: Jan 2005
Distribution: Server Application of Fedora 7 (at the moment), I have played with many others however.
Posts: 27

Rep: Reputation: 15
does it happen only when you make that specific user? or does it happen for every new user you make? if its the second one, check /etc/skel and see if that is the problem
 
Old 02-27-2005, 04:15 PM   #6
cry0x
LQ Newbie
 
Registered: Feb 2005
Distribution: Archlinux 0.7
Posts: 24

Original Poster
Rep: Reputation: 15
it only happened when I made that specific user.


But I fixed it: here's how:


I went into /tmp/ and deleted every file associated with the trouble account (cry0x.)

When I was done, I did adduser cry0x, set it all up like normal, and I could log in with no problems.
 
  


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
adding user hoopy Linux - General 3 09-13-2005 09:38 PM
adding a new user Cinematography MEPIS 5 07-25-2005 09:19 PM
Adding a new user Yohhan Linux - Software 3 01-23-2003 07:17 PM
Adding user desbyleo Linux - Newbie 3 02-18-2002 07:15 PM
user adding sathu Linux - Newbie 1 02-12-2002 05:19 AM

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

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