Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

User creation templates

Status
Not open for further replies.

mhutchins

MIS
Feb 18, 2005
7
US
Is there a file I can edit that will make all users I create have default values?

On AIX 5.3.

Thanks!
 

/etc/security/user is the file that the default values are specified. All new users will pull the default, unless you specify otherwise.

 
I would prefer you to make a backup of this file, and use the "chuser" command for all the changes.
 
Thanks for the help! I think I am leaning more towards setting the parmams that I want for all users in the default stanza and then if I need to I can always make changes for exceptions to the default.

Make sense?

Thanks!
 
Is this a new machine? If so, go for it.

If it's not, be careful. This can be done, however, it might bight you in the rear too. You could use chuser, however, if you're making single user changes, smit user works like a champ.

just my 2 cents.
 
I see what you are saying now. I want to be able to say here are the default settings for all new users, not all users. I backed up the /etc/security/users file and then modified these settings under the default stanza:
loginretries = 3
minalpha = 1
minother = 1
minlen = 6
minage = 1
maxage = 8
maxexpired = 8
histexpire = 52
histsize = 12
pwdwarntime = 5
And of course it modified all users including root, so I had to back it out. Don't want my root accounts password expiring. I have some systems with many users and I want to all new users to get these settings without me having to go through and set them each time. Is there a way to say apply these settings but not on root or sys etc?
 
You have a couple options.

Option one:
If you have time, the cleanest way to do it is, set the defaults in this user file. Next, go through "smit user", "Change / Show Characteristics of a User" and set any values for users that are not the default. This should include users like root.

Option two:
Create a new stanza for each user that differs from the default:

example :
root:
admin = true
SYSTEM = "compat"
registry = files
loginretries = 0
account_locked = false
rlogin = false
 
To specify the default settings for new users, edit /usr/lib/security/mkuser.default.



Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top