Operating System - HP-UX
1850507 Members
2434 Online
104054 Solutions
New Discussion

Re: Login with no home directory...

 
SOLVED
Go to solution
Jonathan Caplette_1
Super Advisor

Login with no home directory...

Hi guys,

I've a user who accidentaly deleted his home directory /home/username. When he log in his "new" home directory is / instead of /home/username ... How could I prevent him or any other users from login if they don't have a home directory, I mean the specified home directory is not available??? Is there a way I can easily do it or should I script something in each user .profile file???

Jonathan
3 REPLIES 3
Florian Heigl (new acc)
Honored Contributor
Solution

Re: Login with no home directory...

This can be set with help of the file /etc/security
The parameter is:
ABORT_LOGIN_ON_MISSING_HOMEDIR=1

yesterday I stood at the edge. Today I'm one step ahead.
D Block 2
Respected Contributor

Re: Login with no home directory...

note the full file name: /etc/default/security
and you might have to create it by hand.
Golf is a Good Walk Spoiled, Mark Twain.
Jonathan Caplette_1
Super Advisor

Re: Login with no home directory...

I add the security file in the /etc/default directory. It work perfectly!!

Thanks