- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- aging parameters does not work
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
тАО07-12-2009 12:12 AM
тАО07-12-2009 12:12 AM
aging parameters does not work
i want to set the force aging for a user, but i am getting the following error.
vinay_root # passwd -x 0 sunita
Changing password for vinay
New password:
vinay_root #
each time i enter this command or for any other user, it ask to change the password for the user through which i logged into it. My system is not trusted. if any other way, i can change my aging to 0. plz help on this.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2009 12:29 AM
тАО07-12-2009 12:29 AM
Re: aging parameters does not work
/usr/bin/passwd -x 0 sunita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2009 12:58 AM
тАО07-12-2009 12:58 AM
Re: aging parameters does not work
i also did with /usr/bin/passwd, but the result is the same.
plz suggest. Can i manually change the aging for this user in any file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2009 08:14 AM
тАО07-12-2009 08:14 AM
Re: aging parameters does not work
http://docs.hp.com/en/B2355-90690/passwd.1.html
from 11v1 and up shows the x option used as:
password -r files -x o sunita
I believe at 11.0 and prior is as you noted it.
note that you are attempting to set the elapsed time that a password can remain unchanged, which I believe *means* never expire....
What OS and exactly what are you trying to accomplish?
if you want to force user to change password at next login, take a look at "-f" as in
passwd -r files -n 14 -w 7 -x 56 -f sunita
should force sunita to change password at next login, make him/her wait 2 weeks before changing it again, require that it be changed in the next 8 weeks, and begin warning that the password will expire 7 days befor it does.
note that the 14, 7 and 56 will be changed to weeks (divided by 7) prior to being used.
none of this applies to trusted systems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2009 05:55 AM
тАО07-13-2009 05:55 AM
Re: aging parameters does not work
-x max ------- 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. If the -f option was used in a previous invocation of passwd(1) to immediately expire a password, the effect of -f is cancelled; the password will not expire until max days. The effect of -f is not cancelled if -x and -f are specified on the same command line or if the system has been converted to a trusted system.
Plz suggest.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2009 06:25 AM
тАО07-13-2009 06:25 AM
Re: aging parameters does not work
passwd -sa to see current status
passwd -x and -y set the maximum and minimum number of days to next password change.
If you set these figures to zero, that should stop password aging.
run passwd -sa after to be sure.
You might try using sam menu to change the behavior and checking the sam log for what command did the job, because passwd -x 0 should do the job.
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
тАО07-13-2009 06:37 AM
тАО07-13-2009 06:37 AM
Re: aging parameters does not work
and in SAM, can you please tell me what is the field in SAM, which will work for me.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2009 06:52 AM
тАО07-13-2009 06:52 AM
Re: aging parameters does not work
ok, I missed the part where it's asking you to change *your* password.
you need to be root, su'd to root, or whatever. a non-root user doesn't have the necessary authority
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2009 07:39 AM
тАО07-13-2009 07:39 AM
Re: aging parameters does not work
Anyways,Thanks all for their replies. i sorted it out. i just copied the passwd file from other server in /usr/bin and it worked out.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2009 08:29 AM
тАО07-13-2009 08:29 AM
Re: aging parameters does not work
"vinay_root # passwd -x 0 sunita
Changing password for vinay
New password:
vinay_root #"
maybe that tells you that you are "root"....but it certainly isn't obvious to the casual observer....i'd have guessed that you *might* have been either "vinjay" or "vinjay_root"......
"i sorted it out. i just copied the passwd file from other server in /usr/bin and it worked out. "
which implies that somebody had replaced the real passwd executable with some kind of wrapper script (maybe)....