- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: passwd ageing
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
03-20-2001 12:49 AM
03-20-2001 12:49 AM
How can I set passwd ageing ?
Is converting to trusted system a must ??
Thanks in advance
Animesh
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2001 12:59 AM
03-20-2001 12:59 AM
Re: passwd ageing
Once your system being converted to trusted mode, enter SAM -> System Security Policy and you'll see the password ageing menu there.
~Philip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2001 01:01 AM
03-20-2001 01:01 AM
Re: passwd ageing
go to SAM -> when you are defining a user set the password aging from "set password option "..
Federico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2001 01:15 AM
03-20-2001 01:15 AM
Re: passwd ageing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2001 01:17 AM
03-20-2001 01:17 AM
Re: passwd ageing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2001 01:19 AM
03-20-2001 01:19 AM
Re: passwd ageing
Yes I can set the passwd ageing but I need to do one by one for all users.I have got lot of existing users in my system.If I convert in to trusted system do I need to modify one by one?
Will converting into trusted system lead to any problem spacially mc/service guard ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2001 02:04 AM
03-20-2001 02:04 AM
Re: passwd ageing
If you are using SAM, you still have to highlight each user account and change the user password one by one in trusted system. However, for new users, you can make use of "User Templates" in SAM to customize the password expiration time for new users.
If you are using the command-line, you can write a script that calls passwd -x:
==
#!/sbin/sh
for user in `cat /etc/passwd|cut -d: -f1`
do
passwd -x 27 $user
done
==
The -x option allows you to determine the maximum number of days, max, a password can remain unchanged. The user must enter another
password after that number of days has transpired, known as the password expiration time.
I am running Trusted Systems with all my MC/ServiceGuard clusters. I have not encountered any problems.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2001 12:38 PM
03-20-2001 12:38 PM
Solution#!/bin/ksh
#this script will change the password expiration time
#for all users on the system
/sbin/cat /etc/passwd | awk -F: '{print $1}'> /tmp/pass2change
for user in `/sbin/cat /tmp/pass2change`
do
/sbin/passwd -x 60 $user
echo "changing expiration time for $user to 60 days"
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2001 01:57 PM
03-20-2001 01:57 PM
Re: passwd ageing
A few comments about passwd options and scripts.
1. The -w (warn) option only works on trusted systems.
2. If the -n (min) option is not specified, it is set to 0. This means that a user could be forced to change their password, wait 2 minutes, and change it back.
3. On non-trusted systems, the value of -x and -n is rounded up to the nearest week. Thus, -x 60 is effectively 63, which is 9 weeks.
For more information, see the man page for passwd(1).
--Bruce