- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- setting password non expiry by command line on a u...
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
Forums
Discussions
Discussions
Discussions
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
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
08-26-2008 10:51 PM
08-26-2008 10:51 PM
setting password non expiry by command line on a untrusted system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2008 10:57 PM
08-26-2008 10:57 PM
Re: setting password non expiry by command line on a untrusted system
cat /etc/passwd | awk -F: '{print $1}' > userlist
edit the user list to include only the 30 that need a change.
while read -r un
do
done < userlist
This is not something HP wants you to be able to easily do, so you might be better off doing it manually with sam.
Side Note: Doing this will insure you fail your next security audit. Having user passwords expire is a basic point for system security. If you are subject to US SOX laws this action violates them as well.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2008 11:06 PM
08-26-2008 11:06 PM
Re: setting password non expiry by command line on a untrusted system
use
#modprpw expwarn=0
check the manapges for modprpw . u will get all answer.
Regards
Aul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2008 11:07 PM
08-26-2008 11:07 PM
Re: setting password non expiry by command line on a untrusted system
Sorry i have given for trusted system
Reagrds
Atul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2008 11:31 PM
08-26-2008 11:31 PM
Re: setting password non expiry by command line on a untrusted system
R u doing it in trusted system
Regards
Atul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2008 11:35 PM
08-26-2008 11:35 PM
Re: setting password non expiry by command line on a untrusted system
Here is the solution for Untrusted system:
cat /etc/passwd |cut -d : -f 1 > /temp/user.file
vi user.file to set required 30 users and then run
for user in `cat /temp/user.file`
do
passwd -f -n 90 $user
done
This will solve your query!!
Cheers!!
Deepak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2008 06:54 AM
08-27-2008 06:54 AM
Re: setting password non expiry by command line on a untrusted system
/bin/passwd -x -1