- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- set expiring the password in exactly 90 days.
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
11-05-2003 07:43 AM
11-05-2003 07:43 AM
By default, it will automatically set to the number of weeks nearing days you specified, in this case it is 12 weeks (84days), not 90 days.
Thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2003 07:54 AM
11-05-2003 07:54 AM
Re: set expiring the password in exactly 90 days.
/sbin/passwd -f -x 42 -n 35 $user
-f is force at next login
-x is max days before have to change
-n is max days between changes
Best of luck.
Regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2003 07:54 AM
11-05-2003 07:54 AM
Re: set expiring the password in exactly 90 days.
MAXDAYS=90
# set up read loop for mass change awk
# passwd -r file -n $MINDAYS -x $MAXDAYS $user
# end of theoretical read look
I do think however it will round up to the nearest week which is 91 days.
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
11-05-2003 07:57 AM
11-05-2003 07:57 AM
Re: set expiring the password in exactly 90 days.
I see the same behaviour on trusted and non-trusted boxen alike.
Someone else may come along and prove me entirely wrong, of course.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2003 07:57 AM
11-05-2003 07:57 AM
Re: set expiring the password in exactly 90 days.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2003 08:11 AM
11-05-2003 08:11 AM
Re: set expiring the password in exactly 90 days.
Time to look at some C code.
Regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2003 08:14 AM
11-05-2003 08:14 AM
Re: set expiring the password in exactly 90 days.
The min and max arguments are each represented in units of days.
These arguments will be rounded up to the nearest week on a non-
trusted HP-UX system. If your system is then converted to a trusted
system, the number of days will be based on those weeks. If you only
supply one of the two arguments, passwd checks to see if the other one
already exists. If it does not exist, then it defaults it to zero for
you.
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2003 10:17 AM
11-05-2003 10:17 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2003 10:32 AM
11-05-2003 10:32 AM
Re: set expiring the password in exactly 90 days.
Have it run every 90 days, and do "passwd -f" against each user
you wanted to force to change their password. Wouldn't be hard.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2003 02:10 PM
11-05-2003 02:10 PM
Re: set expiring the password in exactly 90 days.
Did you try if you can set 90 days using SAM?
Check this link for info.
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/5187-2216/5187-2216_top.html&con=/hpux/onlinedocs/5187-2216/00/00/73-con.html&toc=/hpux/onlinedocs/5187-2216/00/00/73-toc.html&searchterms=days&queryid=20031105-200554
Regards,
Hemanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2003 05:29 AM
11-06-2003 05:29 AM