System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: what is the file location for useradd defaults

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

what is the file location for useradd defaults

Hi

In linux the useradd defaults are stored in
"/etc/default/useradd"

like that what is the location in HP-UX.
7 REPLIES 7
James R. Ferguson
Acclaimed Contributor
Solution

Re: what is the file location for useradd defaults

Hi:

Had you looked you would have seen the same.

Regards!

...JRF...
T G Manikandan
Honored Contributor

Re: what is the file location for useradd defaults

Its the same file /etc/default/useradd
Bijeesh
Respected Contributor

Re: what is the file location for useradd defaults

Hi,
In HP unix also,the location is same.

/etc/default/useradd
rgds
Bijeesh
Steven E. Protter
Exalted Contributor

Re: what is the file location for useradd defaults

Shalom,

/etc/skel

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Patrick Wallek
Honored Contributor

Re: what is the file location for useradd defaults

I think you misunderstand, SEP.

/etc/skel is where the generic .profile and other "dot files" are stored.

The /etc/default/useradd contains options that useradd will use when creating the user.

# cat /etc/default/useradd
#default useradd options
HOMEDIR /home
GROUPID 20
INACT -1
EXPIRE
CHOWN_HOMEDIR no
Ganesan R
Honored Contributor

Re: what is the file location for useradd defaults

Hi Senthilkumar,

When you use useradd without any options except login id, the following values will be used. Use useradd -D to list the default values.

# useradd -D
GROUPID 20
BASEDIR /home
SKEL /etc/skel
SHELL /sbin/sh
INACTIVE -1
EXPIRE
CHOWN_HOMEDIR no
#

/etc/skel is the skelten directory from where necessary user profiles will be copied for the users.

Best wishes,

Ganesh.
Dennis Handly
Acclaimed Contributor

Re: what is the file location for useradd defaults

On 11.31, /etc/default/useradd is mentioned under the -t option but not -D.
http://docs.hp.com/en/B2355-60130/useradd.1M.html