- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Is there a way of getting all users to change ...
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
Discussions
Discussions
Forums
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
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
тАО07-15-2019 07:42 AM
тАО07-15-2019 07:42 AM
Is there a way of getting all users to change their password upon next login
Hi,
We have been asked to set all user accounts to have 15+ character passwords. I have therefore set MIN_PASSWORD_LENGTH to 15 in /etc/defaults/security.
I now need to force ALL users to change their password accordingly on their next login (just the next login - not anymore after that) but I cant seem to find any option or variable to allow me to do this for all - it looks like you can only do it on a one account at a time only basis i.e.
passwd -f user-name or /usr/lbin/modprpw -e user-name
Any suggestions? HP release is 11.31
Many thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2019 10:41 PM - edited тАО07-15-2019 10:42 PM
тАО07-15-2019 10:41 PM - edited тАО07-15-2019 10:42 PM
Re: Is there a way of getting all users to change their password upon next login
Did this modprpw(1M) option not work for your requirement?
-E This option is specified WITHOUT a user name to expire all user's
passwords. It goes through the protected password database and
zeroes the successful change time of all users. The result is
all users will need to enter a new password at their next login.
--
ranga
[i work for hpe]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2019 10:48 PM
тАО07-15-2019 10:48 PM
Re: Is there a way of getting all users to change their password upon next login
There isn't an expire-everyone option because it can break administrative logins. You have to be selective but it would be a simple editing task. Create a file with just the usernames you want to force the password change. You can then use vi to insert the passwd or modprpw text in front of each user name. Then run the file: # sh /tmp/usernames
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2019 04:08 AM
тАО07-16-2019 04:08 AM
Re: Is there a way of getting all users to change their password upon next login
I guess though that modprpw -E will do any / all accounts in the password file and there is probably some accounts that you might not want to do that to?