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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

to useradd or not to useradd

Status
Not open for further replies.

henderj99

Programmer
Nov 11, 2002
4
0
0
US
i'd like to write a script for adding a user instead of using sam. i've read the man page for useradd so i'm relatively familiar with that. my problem is, i need to enforce a password aging system so that my users are forced to change their passwords on a timed basis. i know the -e option doesn't do that. any help/advice would be appreciated . . . .
 
The useradd -e option is just to set when the account will expire. Your system should already be setup to do this, but if not, you will need to create a file in /etc/default called passwd and set the variables in there. You would need to consult your HP documentation, but it should be something like this:

MAXWEEKS=24
MINWEEKS=0
WARNWEEKS=1
PASSLENGTH=6
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top