HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Doubt using passwd
Operating System - HP-UX
1833467
Members
2933
Online
110052
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
06-28-2009 12:35 AM
06-28-2009 12:35 AM
Doubt using passwd
Hi, Guys.
I am trying to set my password expiration for 180 days.
But when try the following command:
passwd -x 180 user1
and when I try this
passwd -s user1
user1 PS 06/09/09 0 182 14
Why the system shows 182 days instead of 180?
Thanks
I am trying to set my password expiration for 180 days.
But when try the following command:
passwd -x 180 user1
and when I try this
passwd -s user1
user1 PS 06/09/09 0 182 14
Why the system shows 182 days instead of 180?
Thanks
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2009 12:46 AM
06-28-2009 12:46 AM
Re: Doubt using passwd
HP-UX version? ("uname -a".)
"man passwd"?
[...]
The min and max arguments are each
represented in units of days. These
arguments will be rounded up to the nearest
week on a standard HP-UX system. [...]
What's "(180+ 6)/ 7* 7"?
"man passwd"?
[...]
The min and max arguments are each
represented in units of days. These
arguments will be rounded up to the nearest
week on a standard HP-UX system. [...]
What's "(180+ 6)/ 7* 7"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2009 07:03 AM
06-28-2009 07:03 AM
Re: Doubt using passwd
Shalom,
The reason for 182 days instead of 180 is by default, HP-UX rounds aging to the nearest week.
182 divides evenly to 26 weeks.
SEP
The reason for 182 days instead of 180 is by default, HP-UX rounds aging to the nearest week.
182 divides evenly to 26 weeks.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
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
06-28-2009 06:49 PM
06-28-2009 06:49 PM
Re: Doubt using passwd
HP-UX standard security has a very small space to keep the expiration data. Only 2 characters are used so weeks are used rather than days. See the man page passwd file format:
man 4 passwd
Bill Hassell, sysadmin
man 4 passwd
Bill Hassell, sysadmin
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP