1833552 Members
3094 Online
110061 Solutions
New Discussion

creating new users

 
Jeff Hagstrom
Regular Advisor

creating new users

When creating a new user, where does it get the .profile from? Is there a basic template that is used?
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor

Re: creating new users

Hi Jeff,

Look in /etc/skel. If you are using useradd
you can specify a skeleton directory to load prototype .profiles from. Man useradd for details.

Clay
If it ain't broke, I can fix that.
Joe Colucci_1
Frequent Advisor

Re: creating new users

Jeff,

You should also include a copy of .dtprofile in /etc/skel in which you uncomment the line DTSOURCEPROFILE=true, if you want the user's .profile to be read during CDE logins.

If a .dtprofile is not found in the user's home directory during a CDE login, it is created, and will not source the user's .profile.

--Joe
Bruce Regittko_1
Esteemed Contributor

Re: creating new users

Hi,

Both sam and useradd will copy the entire contents of /etc/skel into a new user's home directory, including subdirectories and hidden files. By default, /etc/skel has a copy of .profile, .login, and .cshrc. You may add any other files, such as .dtprofile, as you see fit.

--Bruce
www.stratech.com/training
MANOJ SRIVASTAVA
Honored Contributor

Re: creating new users

Hi Jeff

Here is how it is :

Useradd < SAM Useradd > copy form /etc/skel to the home directory for the user .

You can also copy from the exisitng home directories of the same or similar users .

Manoj Srivastava