Operating System - HP-UX
1751775 Members
4766 Online
108781 Solutions
New Discussion юеВ

Re: user's home directory

 
SOLVED
Go to solution
Ken Lee_1
Occasional Contributor

user's home directory

Whenever we add a new user to system, by default it will create user_home_directory under /home/username.
How can I change the default setting which mean whenever I create a user WITHOUT specifying the user_home_directory it will create user_home_directory under /users/username which "/users" already exist in the system.
2 REPLIES 2
Martono
Occasional Advisor
Solution

Re: user's home directory


You can change parameter in /etc/default/useradd, change HOME=/users

hope this helps,
c'mon man, give me some points .. :-)
Michael Tully
Honored Contributor

Re: user's home directory

Hi,

There is a file called "/etc/default/useradd"
You need to change the line where it states
#default useradd options
HOMEDIR /home
GROUPID 20
INACT -1
EXPIRE

to
HOMEDIR /users

This do the trick
HTH
-Michael
Anyone for a Mutiny ?