- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: password aging
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
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
06-29-2004 04:38 AM
06-29-2004 04:38 AM
password aging
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2004 04:51 AM
06-29-2004 04:51 AM
Re: password aging
If you can get your hands on this utility, the task you are looking into is a plain vanilla script, something like (on an untrusted system):
cat /etc/passwd | while read line
do
username=`echo line | cut -d: -f1`
pwage [necessary swithches] $username
done
I hope someone here can direct you where to find this neat utility. I used to use it daily in one of my old workplaces and did not make a copy of it on a tape (dang).
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2004 04:52 AM
06-29-2004 04:52 AM
Re: password aging
awk -F":" '{if (($3 + 0) >= 101) print $1}' < /etc/passwd | while read USR
do
echo "User: ${USR}"
passwd -x 90 -n 7 ${USR}
done
That will set the users' passwords to expire in 90 days (rounded to the nearest week) and require 7 days to pass before a passwd can be changed. You could also add a -f to force all passwd to be expired so that the users would need to change passwords upon the next login.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2004 04:56 AM
06-29-2004 04:56 AM
Re: password aging
sam
accounts and users
accounts
pick the account
modify user
There is a dialog to turn off aging
This is automated as follows:
passwd -x max 0
passwd -x min 0
This turns off aging.
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
06-29-2004 06:06 AM
06-29-2004 06:06 AM
Re: password aging
passwd with -x option will do for a system that is not trusted
if your system is trusted then it is much easier.
/usr/lbin/modprdef -m exptm=90,expwarn=10,mintm=10
exptm - Password expiry time in days
expwarn - Password expiry warning
mintm - Minimum time between password changes
but remember, in trusted system if you enable password aging and if the user has not changed their password in the last "exptm" days then their password will be expired. Worst if you have password lifetime set for the accounts, your user account will be disabled if they havent changed their password in "lftm" days.
if you want the password aging to start counting the days from today then
# /usr/lbin/modprpw -V
The above command will reset the last successful password change time to the current time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2004 06:15 AM
06-29-2004 06:15 AM
Re: password aging
SAM
Auditing and Security
System Security Policies
Password Aging Policies and others there for terminal settings etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2005 06:04 AM
04-21-2005 06:04 AM