LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Adding User? (https://www.linuxquestions.org/questions/linux-software-2/adding-user-295375/)

cry0x 02-27-2005 01:14 AM

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.

spariggio82 02-27-2005 01:35 AM

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

PensJunkie 02-27-2005 01:56 AM

maybe
Code:

userdel -r
is what you are looking for

cry0x 02-27-2005 02:00 AM

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 :(

PensJunkie 02-27-2005 12:37 PM

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

cry0x 02-27-2005 04:15 PM

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.


All times are GMT -5. The time now is 10:28 PM.