![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| cut -d: -f4 /etc/passwd | more | wickbc | SUN Solaris | 3 | 11-08-2007 12:16 PM |
| wc /etc/passwd | zhshqzyc | Shell Programming and Scripting | 1 | 09-28-2007 12:45 PM |
| passwd | jestinabel | HP-UX | 6 | 03-03-2007 11:30 PM |
| AIX 5.1 to AIX 5.2 /etc/passwd | gefa | AIX | 1 | 03-30-2005 10:56 PM |
| no /etc/passwd | cyno | UNIX for Advanced & Expert Users | 3 | 11-03-2003 01:19 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
passwd policies
Hi Guys,
i want to ask how i can add a special policies for users. for example i want so say that each user must chnage the password every 4 weeks the password should have min 5 chacaters ........ passwd -n DAYS ....... and which string is for the min password lenght ...... many thx! |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
What OS and version? Are you using NIS or NIS+ (which don't use password aging)?
Man page for shadow (if you are using it) shows the following: Each entry in the shadow file has the form: username: password:lastchg: min:max:warn: inactive:expire:flag So you want the max field: lastchg The number of days between January 1, 1970, and the date that the password was last modified. min The minimum number of days required between pass- word changes. max The maximum number of days the password is valid. warn The number of days before password expires that the user is warned. Read the man page for shadow and post back if you still don't get it. |
|||
| Google The UNIX and Linux Forums |