Permission problems when removing user's home directory.
Hello, I use Ubuntu Warty and cannot remove past user's home directories from the /home folder. I remove the user's account but their directory stays. I've been able to delete everything within the folders via chown
to my username (dave) but I'm unable to remove the main (now empty) home directories. Now the directory is clearly empty and root sees nothing in there but I get this error while in BASH. Here's my code: root@ubuntu:/home # rmdir camp2005/ rmdir: `camp2005/': Directory not empty Any help would be great. Thanks alot. |
If you're completely sure it's empty (invisible config files, check "ls .*" or "ls -a") or don't want to keep anything:
"rm -rf camp2005/" Be careful with it you want to make sure that you're really removing the intended folder as there's no way back ;) |
this folder is probably not empty.
There may be some hidden files (files starting with .) left there. USE Code:
ls -la /home/<username> You may also use Code:
rm -r <directory> or Code:
tm -fr <directory> How did you remove the user? If you used userdel the -r option would have removed the homedirectory of the user: Quote:
|
I tried this out on my Debian box and discovered that I had to type "rm -R dirname" to remove a defunct user's home directory.
|
All times are GMT -5. The time now is 09:41 PM. |