Find the answer to your Linux question:
Results 1 to 2 of 2

Thread: userdel command

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2010

    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

  2. #2
    Just Joined! barriehie's Avatar
    Join Date
    Apr 2008
    The Desert!
    What about:
    deluser --remove-home user

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts