Operating System - HP-UX
1834605 Members
4383 Online
110069 Solutions
New Discussion

SAM home directory default - how to change?

 
SOLVED
Go to solution
David White
Occasional Contributor

SAM home directory default - how to change?

The default in SAM is to place all new users home directories under /home.

Where is this defaulting from? We'd like to change this so it automatically defaults to a mounted area we have created called /users.

Can anyone advise how this is achieved?

Thanks

Dave
It's a laugh - innit?!?!?
10 REPLIES 10
Tony Constantine_1
Regular Advisor

Re: SAM home directory default - how to change?

While in sam go to users and under actions you can create user templates
Kofi ARTHIABAH
Honored Contributor
Solution

Re: SAM home directory default - how to change?

the file you are looking for is called useradd in /etc/default. Modify the variable HOMEDIR variable in the file /etc/default/useradd and viola!

Good luck
nothing wrong with me that a few lines of code cannot fix!
federico_3
Honored Contributor

Re: SAM home directory default - how to change?

go to SAM -> Accounts for Users and Groups -> Users-> Actions -> User Templetes-> Create

Federico
Kofi ARTHIABAH
Honored Contributor

Re: SAM home directory default - how to change?

The file you are looking for is called useradd in /etc/default. Modify the variable HOMEDIR variable in the file /etc/default/useradd and viola!

Good luck
nothing wrong with me that a few lines of code cannot fix!
Ralph Grothe
Honored Contributor

Re: SAM home directory default - how to change?

You can change the basedir using useradd alone (no editing involved):

# useradd -D -b /users
Madness, thy name is system administration
f. halili
Trusted Contributor

Re: SAM home directory default - how to change?

Check your user defaults by running: # useradd -D

Edit your /etc/defaults and chage your BASEDIR from /home to /users.

Check your defaults again by running: # useradd -D and create a user if possible.
derekh
f. halili
Trusted Contributor

Re: SAM home directory default - how to change?

Check your user defaults by running: # useradd -D

Edit your /etc/defaults and chage your BASEDIR from /home to /users.

Check your defaults again by running: # useradd -D and create a user if possible.
derekh
f. halili
Trusted Contributor

Re: SAM home directory default - how to change?

Check your user defaults by running: # useradd -D

Edit your /etc/defaults and chage your BASEDIR from /home to /users.

Check your defaults again by running: # useradd -D and create a user if possible.
derekh
f. halili
Trusted Contributor

Re: SAM home directory default - how to change?

Check your user defaults by running: # useradd -D

Edit your /etc/defaults and chage your BASEDIR from /home to /users.

Check your defaults again by running: # useradd -D and create a user if possible.
derekh
f. halili
Trusted Contributor

Re: SAM home directory default - how to change?

sorry the send button went wild..............
derekh