GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Force fully passwd reset
Operating System - HP-UX
1850480
Members
3112
Online
104054
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
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
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
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
01-05-2009 09:12 AM
01-05-2009 09:12 AM
Hi
There any way in Hp-ux in that all system users need to be reset their passwd in next login
There any way in Hp-ux in that all system users need to be reset their passwd in next login
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2009 09:32 AM
01-05-2009 09:32 AM
Solution
'passwd -f USERNAME' will expire the account and force a password change upon next login.
You could write a loop to process the account names in /etc/passwd and run this command on each one:
awk -F: '{print $1}' /etc/passwd | grep -v root | while read USER ; do
passwd -f $USER
done
The above example skips the root user.
You could write a loop to process the account names in /etc/passwd and run this command on each one:
awk -F: '{print $1}' /etc/passwd | grep -v root | while read USER ; do
passwd -f $USER
done
The above example skips the root user.
I drive way too fast to worry about calories.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2009 08:44 PM
01-05-2009 08:44 PM
Re: Force fully passwd reset
password -f is the best way. you can copy the password file to a separate file and remove entries with UID less then 100 to avaid system account password reset.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2009 06:34 AM
01-06-2009 06:34 AM
Re: Force fully passwd reset
Thanks to all
Viney Kumar
Viney Kumar
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 2026 Hewlett Packard Enterprise Development LP