LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 11-20-2008, 08:54 PM   #1
avklinux
Member
 
Registered: Nov 2008
Posts: 32

Rep: Reputation: 15
How to : Change Password Expiration Policy in Solaris


Hello

any one have any idea for Changing Password Expiration Policy in Solaris

Thanks

Varang
 
Old 11-21-2008, 10:28 AM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,996

Rep: Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673
Quote:
Originally Posted by avklinux View Post
Hello

any one have any idea for Changing Password Expiration Policy in Solaris
Tried Google, or Solaris forums?

/etc/default/passwd is the file related to password aging. Edit that file to suit your needs.
 
Old 11-21-2008, 12:53 PM   #3
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 682

Rep: Reputation: 63
In etc shadow you should have a line for each user that looks something like this:
bob:uQI6r6XZeYL3s:14186:7:60:28:::

explanation:
username : password hash:date password was set : Min password days: max password Days: warning days : inactive : Expire : Flag

These values are pulled out of /etc/default/passwd as TB0ne indicated however can be overwritten by editing /etc/shadow directly.

in /etc/default/passwd you should have something like this:
MAXWEEKS=9
MINWEEKS=1
WARNWEEKS=2
PASSLENGTH=6
 
Old 11-21-2008, 01:37 PM   #4
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,996

Rep: Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673
Quote:
Originally Posted by Blinker_Fluid View Post
In etc shadow you should have a line for each user that looks something like this:
bob:uQI6r6XZeYL3s:14186:7:60:28:::

explanation:
username : password hash:date password was set : Min password days: max password Days: warning days : inactive : Expire : Flag

These values are pulled out of /etc/default/passwd as TB0ne indicated however can be overwritten by editing /etc/shadow directly.

in /etc/default/passwd you should have something like this:
MAXWEEKS=9
MINWEEKS=1
WARNWEEKS=2
PASSLENGTH=6
You should NEVER edit /etc/shadow directly..it's very dangerous. Can cause all sorts of problems, not the least of which is no one being able to log in at all, from anywhere.

If you want to change what users are currently set to, use the passwd command, and specify the new values.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to force user to change password after expiration in Linux? ssy68 Linux - Newbie 4 06-30-2011 03:54 PM
How to set the password policy and lockout policy bin_shell Linux - Security 4 03-24-2010 04:30 PM
Password Expiration Policy bspicer Linux - General 7 05-12-2007 04:26 AM
change password policy sunhui Linux - Software 2 08-11-2006 11:40 AM
Change password policy sunhui Linux - Software 7 08-02-2006 09:54 PM


All times are GMT -5. The time now is 12:20 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration