Operating System - Linux
1825815 Members
2869 Online
109688 Solutions
New Discussion

Re: userdel /etc/auto.home

 
Ragni Singh
Super Advisor

userdel /etc/auto.home

Hi all, with userdel, I see it doesn't remove the users entry in /etc/auto.home on local system. This is something I have to do manually. Any command available out there that wil remove a user from passwd, shadow, group and also from auto.home on local system? Any ideas?

Points will be assigned
3 REPLIES 3
xyko_1
Esteemed Contributor

Re: userdel /etc/auto.home

Hi Sanjit,

What linux distro are youn running ?

regards,
Xyko
Ragni Singh
Super Advisor

Re: userdel /etc/auto.home

its on redhat advance server 3 (update 4)
xyko_1
Esteemed Contributor

Re: userdel /etc/auto.home

Hi,

unfortunately I guess userdel will not do what you want. If you don't want to do the housekeeping by hand you will need to make a script to do the job for you.
Your script will call userdell and make the auto.home cleanup.

regards,
xyko