The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
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

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 10-10-2003
Registered User
 

Join Date: Aug 2003
Posts: 8
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  
Old 10-10-2003
Registered User
 

Join Date: Jan 2002
Location: Florida
Posts: 84
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
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 08:48 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0