LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 11-20-2008, 07: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, 09:28 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,680

Rep: Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971
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, 11:53 AM   #3
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

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, 12:37 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,680

Rep: Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971
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



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 02:54 PM
How to set the password policy and lockout policy bin_shell Linux - Security 4 03-24-2010 03:30 PM
Password Expiration Policy bspicer Linux - General 7 05-12-2007 03:26 AM
change password policy sunhui Linux - Software 2 08-11-2006 10:40 AM
Change password policy sunhui Linux - Software 7 08-02-2006 08:54 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 03:51 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration