HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- mass password reset?
Operating System - HP-UX
1834835
Members
2649
Online
110070
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
07-30-2001 01:18 PM
07-30-2001 01:18 PM
mass password reset?
What's the best way to reset hundreds of passwords -- is there a utility? Tx
UNIX is like an ocean... (anonymous)
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2001 01:40 PM
07-30-2001 01:40 PM
Re: mass password reset?
Hi Tom:
Create a file of the user names you want to inactivate. Give a file of names titled "tmp/userlist" do:
#!/usr/bin/sh
while read USER
do
passwd -f $USER
done < /tmp/userlist
...JRF...
Create a file of the user names you want to inactivate. Give a file of names titled "tmp/userlist" do:
#!/usr/bin/sh
while read USER
do
passwd -f $USER
done < /tmp/userlist
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2001 02:02 PM
07-30-2001 02:02 PM
Re: mass password reset?
I would do it something like this:
cat /etc/passwd | awk -F: '{if ($3 >= 101) print $1}' | while read X
do
passwd -f $X
done
This will force each uid >= 101 to enter a new passwd on the next login.
NOTE: Before doing anything make sure you make a safe copy of the passwd file and be logged in as root in at least two sessions. That way you can get ypurself out of trouble just as fast as you got yourself in.
Regards, Clay
cat /etc/passwd | awk -F: '{if ($3 >= 101) print $1}' | while read X
do
passwd -f $X
done
This will force each uid >= 101 to enter a new passwd on the next login.
NOTE: Before doing anything make sure you make a safe copy of the passwd file and be logged in as root in at least two sessions. That way you can get ypurself out of trouble just as fast as you got yourself in.
Regards, Clay
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2001 03:09 PM
07-30-2001 03:09 PM
Re: mass password reset?
Hi,
James and Clay are right as usual, but there is a utility if you have a trusted system, and that is:
# /usr/lbin/modprpw -E
This utility will go through the protected password database and remove all of the successful login times from all users. The result is all users will need to enter a new password at the next login.
Make sure you have a copy of all files under /tcb as well as /etc/passwd
Regards
Michael
James and Clay are right as usual, but there is a utility if you have a trusted system, and that is:
# /usr/lbin/modprpw -E
This utility will go through the protected password database and remove all of the successful login times from all users. The result is all users will need to enter a new password at the next login.
Make sure you have a copy of all files under /tcb as well as /etc/passwd
Regards
Michael
Anyone for a Mutiny ?
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