Link to home
Start Free TrialLog in
Avatar of gheist
gheistFlag for Belgium

asked on

Prevent login on dead linux home directories

I have complex setup of nfs automounts and ldap. If automount of faraway user fails for whatever reason I would like to deny login for a user instead of starting useless $SHELL in /
PS I know pam.d.
ASKER CERTIFIED SOLUTION
Avatar of tfewster
tfewster
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gheist

ASKER

Looks nice. That should exactly hint autofs to do something. I wl wait couple of days if somebody comes up with pam ideas, but yours is already good enough.
Avatar of gheist

ASKER

I ended up using pam_exec and writing in C 'touch $HOME/.'
Thank you for showing the right way ;)