- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: passwd global changes question
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
тАО03-30-2005 11:25 AM
тАО03-30-2005 11:25 AM
passwd global changes question
I was unable to find a method in the man pages and didn't want to write a script to extract the uid and pipe to a passwd command for all the users grepped.
Thanks in advance,
Doug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2005 12:51 PM
тАО03-30-2005 12:51 PM
Re: passwd global changes question
Copy the existing passwd file to a temporary location and make a safe copy of the passwd file.
pwadjust.pl < tmpin_passwd > tmpout_passwd
When you have run the script, you can move the output file to /etc/passwd.
Be logged in as root in at least two sessions when you move the file back so that you can get yourself out of trouble as fast as you got yourself in.
There are 2 constants in the script, MIN_UID and ADDITIONAL_WKS. Any passwd entries less than < MIN_UID will pass through unchanged as will any passwd's that don't have aging values. ADDITIONAL_WKS is the increase. The currect setting + ADDIONAL_WKS will not exceed the maximum possible value, 64 weeks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2005 01:43 PM
тАО03-30-2005 01:43 PM
Re: passwd global changes question
In UN-trusted system (as you said) don't support for this function!
If you want to configure like as you want, you have to convert your system from Untrusted system to trusted system.
Regard,
HoangChiCong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2005 01:55 PM
тАО03-30-2005 01:55 PM
Re: passwd global changes question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2009 01:37 PM
тАО04-30-2009 01:37 PM
Re: passwd global changes question
I wasn't too lazy, just busy. We have 2 hp's that run quite well and I spend almost no time scripting, unless really really needed. So instead of digging into it I submitted a posting.
I thank you for the script, but as you can see from the time I submitted this and the delay in responding, I did find a solution on my own.
Thanks for sharing your script but un-thanks for the snark.
Regards,
Doug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2009 01:37 PM
тАО04-30-2009 01:37 PM