- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: modprpw -V not refreshing all users
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
тАО01-17-2010 01:56 PM
тАО01-17-2010 01:56 PM
modprpw -V not refreshing all users
Im trying to run /usr/lbin/modprpw -V on HP-UX 11.31 and its not refreshing the "spwchg" to the current time, however the -v
Todd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2010 02:46 AM
тАО01-18-2010 02:46 AM
Re: modprpw -V not refreshing all users
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2010 02:48 AM
тАО01-18-2010 02:48 AM
Re: modprpw -V not refreshing all users
RETURN VALUE
0 Success.
1 User not privileged.
2 Incorrect usage.
3 Can not find the entry or file.
4 Can not change the entry.
5 Not a Trusted System.
6 Not a NIS+ user.
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2010 06:34 AM
тАО01-18-2010 06:34 AM
Re: modprpw -V not refreshing all users
Here is the return code from /usr/lbin/modprpw -l -V
# /usr/lbin/modprpw -l -V
# echo $?
0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2010 12:16 PM
тАО01-18-2010 12:16 PM
Re: modprpw -V not refreshing all users
awk -F : '$3 > 100 {print $1}' /etc/passwd |while read username
do
modprpw -V $username
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2010 04:20 AM
тАО01-19-2010 04:20 AM
Re: modprpw -V not refreshing all users
-v is for setting it individually
-V is for all users at once
so:
awk -F : '$3 > 100 {print $1}' /etc/passwd |while read username
do
modprpw -v $username
done
(ok, I also mixed it in my first post)
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2010 04:23 AM
тАО01-19-2010 04:23 AM
Re: modprpw -V not refreshing all users
Do you have NIS or NIS+? Or other central authentication method? That's why I suggested the -l switch. According to the return value it should have been worked. Did it?
What does pwck spit out? Maybe there is an inconsistency with your user database.
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2010 05:49 AM
тАО01-19-2010 05:49 AM
Re: modprpw -V not refreshing all users
My only errors with "pwck" are about login directories not being found. So are you telling me that on your system /usr/lbin/modprpw -V works. I have tried this on 2 systems running 2 different versions of HP-UX and it doesnt work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2010 06:49 AM
тАО01-19-2010 06:49 AM
Re: modprpw -V not refreshing all users
Tech Mahindra
Data Canter Tubli Bahrain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2010 07:08 AM
тАО01-19-2010 07:08 AM