Operating System - HP-UX
1833958 Members
2107 Online
110063 Solutions
New Discussion

Home directory remain intact after removing user using SAM

 
jamil
Occasional Contributor

Home directory remain intact after removing user using SAM

I'm facing a problem with SAM. it seems that when i'm using SAM to remove user, and selecting the remove from all local disk, the home directory will remail intact if there is a root owned file in the home directory of the user. Anybody know how to rectify this or ever encounter this problem. I'll be glad to answer any question if the more explanation is required. Thanks.
5 REPLIES 5
R. Sri Ram Kishore_1
Respected Contributor

Re: Home directory remain intact after removing user using SAM

Take a look at:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=674519

HTH.
Regards,
Sri Ram
"What goes up must come down. Ask any system administrator."
R. Sri Ram Kishore_1
Respected Contributor

Re: Home directory remain intact after removing user using SAM

Hi,

Oops! Looks like I pointed you to your own question (that you asked last month)! Am sorry.

Regards,
Sri Ram
"What goes up must come down. Ask any system administrator."
Muthukumar_5
Honored Contributor

Re: Home directory remain intact after removing user using SAM

You are using setting as "Remove from all local disk".

1. Can you able to delete the home directory with root file using as,

userdel -r

Note: Userlogin must not login at that time, else it will prompt warning and not do action there.

2. what is there in /etc/sam/rmfiles.excl and /etc/sam/rmuser.excl files. We can make some files not to be deleted using sam with /etc/sam/rmfiles.excl

3. Try with another two options on sam home directory deletion there.
Easy to suggest when don't know about the problem!
Cheryl Griffin
Honored Contributor

Re: Home directory remain intact after removing user using SAM

SAM will only remove the user files. Since root owns the file, SAM is protecting the file. There are normally no root owned files in a non-root user's directory.

This is not a bug but by design.

To prevent the issue, check for root owned files prior to removing the user.

You will be warned of any issues by viewing the /var/sam/sam_remove.log as file removal and directory removal is logged.
"Downtime is a Crime."
jamil
Occasional Contributor

Re: Home directory remain intact after removing user using SAM

Thanks all for the reply,Any way to disable this feature or overwrite it, so that whenever my helpdesk people remove users using SAM, it will promptly remove everything including the root owned files in the home directory.