Results 1 to 2 of 2
Hi all
I am facing one problem with userdel command
my home directory permission is set to 755 and the owner is root group is also root
drwxr-xr-x 2 root ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 12-14-2010 #1Just Joined!
- Join Date
- Dec 2010
- Location
- India
- Posts
- 45
userdel command
Hi all
I am facing one problem with userdel command
my home directory permission is set to 755 and the owner is root group is also root
drwxr-xr-x 2 root root 4096 Dec 14 09:43 test1
now if i am running the command userdel -r test1
it is deleting the user test1 but not removing the home directory
root<server>:/home> userdel -r test1
userdel: /home/test1 not owned by test1, not removing
but because of some security reason i cannot change the owner of directory
can u please tell me is there any way to delete the home dir at teh time of userdel command
- 12-15-2010 #2
What about:
Code:deluser --remove-home user


Reply With Quote
