- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Password Aging
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2004 02:23 AM
08-06-2004 02:23 AM
I would like to set up a password policy that says users must change their passwords every X number of days.
Thanks for all your help as I move from being a Windows Admin to a Unix Admin.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2004 02:34 AM
08-06-2004 02:34 AM
SolutionOne is to run some passwd commands on the user id right after its created setting its expiration and such. I'm attaching utility secript that does that. Pete Randall wrote the original, though I doubt he recognizes it.
You can use sam system security policies and set global policies for the system. root access is required for this.
There are other ways to do it as well.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2004 03:18 AM
08-06-2004 03:18 AM
Re: Password Aging
# Standard and Shadow modes only: number
# of days that passwords are valid
# PASSWORD_MAXDAYS=175
# PASSWORD_MINDAYS=14
Or we can do it with passwd command.
Change the password expiration date of user to 42 days in the files
repository:
passwd -r files -x 42 user
See passwd man page EXAMPLES part to know more.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2004 03:22 AM
08-06-2004 03:22 AM
Re: Password Aging
I was going to proceed with changing the password policy through SAM but I got an error about a turning it into a trusted database (see attached). Is it a bad idea to do this? Could this break something else on the machine or is this a suggested HP procedure.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2004 03:31 AM
08-06-2004 03:31 AM
Re: Password Aging
----------------
If you are not using a shadow file, this information is addeded to the end of the password field:
user1:PPPPPPPPPPPPP,AMWW:uid:gid:user_name
Where:
A (1 character) - # of weeks for which a password is valid
M (1 character) - # min number of week which must pass before a user can change their password.
WW (2 character) - # of weeks since password was changed. Weeks are counted from the beginning of 1970.
There are 64 valid characters that are used in the password field. Each character is used to represent a digit. The valid characters are: â .â for 0, / for 1, A through Z, for 12 through 37, and a through z for 38 through 63.
So, for example:
user1:PPPPPPPPPPPPP,O/7Q:uid:gid:user_name
Password is valid 26 weeks.
Password can't be changed for 1 week.
Password was last changed 7/8/04
----------------
If you are using a shadow file, setting up password aging is much simpler:
user1:PPPPPPPPPPPPP,ddddd,m,xxx,ww:::
dddddd - # of days since password was changed. Weeks are counted from the beginning of 1970.
m - # min number of days which must pass before a user can change their password.
xxxx - # of days for which a password is valid
ww - # of days a user will receive warning messages prior to the password expiring.
---------------------
The command:
password -s -a
will show you the aging information set for your users:
user1 PS 07/08/04 7 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2004 03:35 AM
08-06-2004 03:35 AM
Re: Password Aging
You are trying to change your system as Truseted one. I hope you have a knowledge on that.
It will make passwd file with * as passwd in every passwd. It will make your system as very secure.
If you put yes it will change your system to truseted one.
See more about the difference between them
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=638058
If you want to use your system as normal one with this requirement then use passwd command settings / /etc/default/security file settings
Muthu.