View Full Version : [ubuntu] deleted user home directory

September 7th, 2008, 10:26 PM
I deleted a use I created and then later found out that the home directory is still in the file system.
But everything in there is no use to me because I don't have the right permissions. Neither can I recreate the use for Ubuntu says the home directory already exists.
Is there a way to change the permissions on the files ?

September 8th, 2008, 05:53 AM
If there are any files in that user account that I would like, I would move them into a separate folder in my home directory, then change the permissions. You would have to use the terminal as root and command 'mv' to move the files and 'chmod' to change the permissions.

To delete a user, as I'm sure you have realised now, you also have to delete their home folder by using this command...

sudo rm -r /home/<username>/

September 8th, 2008, 06:12 AM
I thought Ubuntu would delete everything with the account....my mistake

September 12th, 2008, 12:49 AM
to change the permissions: (my username is skullmunky, the deleted one is, let's say, "joe"):

sudo chown -R skullmunky:skullmunky /home/joe

that changes the owner of the whole directory and everything in it (-R is recursive) to me.

then you can copy it all over and delete it.

btw in the Admin control panel to delete a user, there should be a checkbox to delete the home directory as well.