- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: password aging policies in HP-UX
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-31-2009 01:28 AM
03-31-2009 01:28 AM
I want to view the password aging policies of the user such as minimum days, maximum days, warning days, date of last password change and password expire date.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2009 01:38 AM
03-31-2009 01:38 AM
Re: password aging policies in HP-UX
Use this command.
#/usr/lbin/getprpw
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2009 01:39 AM
03-31-2009 01:39 AM
Re: password aging policies in HP-UX
See /etc/default/security
There is a man page and current settings can be viewed.
http://www.docs.hp.com/en/B2355-60103/security.4.html
http://docs.hp.com/en/B2355-60127/security.4.html
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
03-31-2009 01:43 AM
03-31-2009 01:43 AM
Re: password aging policies in HP-UX
uid=101, bootpw=NO, audid=13, audflg=1, mintm=2, maxpwln=-1, exptm=30, lftm=40,
spwchg=Thu Nov 21 18:07:34 2002, upwchg=-1, acctexp=-1, llog=-1, expwarn=2, usrp
ick=DFT, syspnpw=DFT, rstrpw=DFT, nullpw=DFT, admnum=-1, syschpw=DFT, sysltpw=DF
T, timeod=-1, slogint=Thu Nov 21 16:08:10 2002, ulogint=Thu Nov 21 16:07:13 2002
, sloginy=-1, culogin=-1, uloginy=-1, umaxlntr=-1, alock=NO, lockout=0000100
Password Format Policies:
maxpwln ==> Maximum Password Length
nullpw ==> Allow Null Passwords
rstrpw ==> Use Restriction Rules
usrpick ==> User Specifies
syschpw ==> System Generates Character
sysltpw ==> System Generates Letters only
syspnpw ==> System Generates Pronounceable
Password Aging Policies
exptm ==> Password Expiration Time (days)
expwarn ==> Password Expiration Warning Time (days)
lftm ==> Password Life Time (days)
mintm ==> Time Between Password Changes (days)
NOTE: If password aging is disabled, all above parameters are set
to 0.
General User Account Policies
bootpw ==> Require Login Upon Boot To Single-User State
llog ==> Maximum Inactive Time (days)
umaxlntr ==> Unsuccessful login Tries Allowed
NOTE: If Lock Inactive Accounts is disabled, llog is set to 0.
Terminal Security Policies
dlylntr ==> Delay Between Login Tries (sec)
lntmout ==> Login Timeout Value (sec)
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2009 01:49 AM
03-31-2009 01:49 AM
Re: password aging policies in HP-UX
configuration file is /etc/defualt/security
u can do passwd length passwd aging also a number of thing in this file see the above posting also
thanks and regards
Sajjad Sahir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2009 01:50 AM
03-31-2009 01:50 AM
Re: password aging policies in HP-UX
root@lgapps:/root > /usr/lbin/getprpw test
System is not trusted.
Pls help me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2009 01:52 AM
03-31-2009 01:52 AM
Re: password aging policies in HP-UX
Dear Senthil
this is available in trusted system
modprpw, getprpw etc..
u system is not trusted.
u can do passwd aging a lot of things in /etc/default/security file see more parameters from there
thanks and regards
Sajjad Sahir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2009 01:54 AM
03-31-2009 01:54 AM
Re: password aging policies in HP-UX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2009 02:02 AM
03-31-2009 02:02 AM
Re: password aging policies in HP-UX
If your system is not converted as trusted, then you cannot use modprpw,getprpw commands.
But still you can set password policies on /etc/default/security file.
see man security
Many things you can do with security.
If you want to know existing password status use the below command
#passwd -sa -> for all users
#passwd -s
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2009 02:33 AM
03-31-2009 02:33 AM
Re: password aging policies in HP-UX
On non-trusted systems, general password policy is set by the week, not the day. That is why you had to run a special command, shown above to expire a user the next day.
The passwd -s output is still meaningful. After 7 days if not used, both accounts will be locked.
You have considerable flexibility in setting policy on a non-trusted sysetm.
/etc/default/security configuration will let you set general policy to meet your organizations guidelines.
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2009 02:40 AM
03-31-2009 02:40 AM
Re: password aging policies in HP-UX
Without converting to a trusted system , the password aging policies dont work, except the changes which you can do with /etc/passwd file for the non-trusted systems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2009 02:40 AM
03-31-2009 02:40 AM
Re: password aging policies in HP-UX
Fisrt check that your system is in trusted mode or not.
If not then -
#sam> Press "Return" to continue> Auditing and Security> System Security Policies> (Do you want to convert to a Trusted System now?)Press on Yes> ok> Select [Password Aging Policies]> Enable the Password Aging:> then change the value as per your requirement.
Thnx...Farhan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2009 02:45 AM
03-31-2009 02:45 AM
Re: password aging policies in HP-UX
#sam> Press "Return" to continue> Auditing and Security> System Security Policies> Select [Password Aging Policies], from here you can check password aging plocies.
Thnx...Farhan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2009 03:18 AM
03-31-2009 03:18 AM
Re: password aging policies in HP-UX
Other than the expiration time and the minimum time before another password change can be made, there are no other password controls available on your system. The /etc/default/security file must be created by you but read the man page for security. There just a couple of options that will work -- all the others will be ignored until you convert to a Trusted System. Depending on your version of HP-UX, you may also choose Shadow Password protection or Security Enhancement/Containment.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2009 09:09 AM
06-25-2009 09:09 AM
Re: password aging policies in HP-UX
Just now i converted my hpux in to trusted mode using SAM.
Now i am able to find the folder "/tcb/files/auth"
My problem is just now i have created one user, i am not able to change the password for that user.
Ex:
# useradd sentest
# passwd sentest
Password cannot be changed. Reason: Cannot access protected password entry.
I am getting the above error.
And i am not able to run the command "getprpw".
Ex:
root@lgsna:/tcb/files/auth/r > getprpw sentest
sh: getprpw: not found.
root@lgsna:/tcb/files/auth/r > usr/lbin/getprpw sentest
sh: usr/lbin/getprpw: not found.
My questions:
1) How to set / reset the password when server is at trusted mode.
2) How to get the command "getprpw".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2009 10:13 AM
06-25-2009 10:13 AM
Re: password aging policies in HP-UX
"# /usr/lbin/getprpw test"
-and you did-
"root@lgsna:/tcb/files/auth/r > getprpw sentest
sh: getprpw: not found."
do *you* see the difference? do you know at least 2 ways to correct the issue?
hint: what's your path?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2009 10:20 AM
06-25-2009 10:20 AM
Re: password aging policies in HP-UX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2009 04:48 AM
06-29-2009 04:48 AM
Re: password aging policies in HP-UX
i have converted my system into trusted.
I would like to practice all the features of trusted system like "getprpw", "modprpw",
"configuring /etc/defaults/security", "password aging policies" and "auditing".
So i need best guide (pdf / html) to practice above things.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2009 04:54 AM
06-29-2009 04:54 AM
Re: password aging policies in HP-UX
I trust (no pun intended) that you realize that Trusted Sysem security is deprecated with 11.31 and that the 11.31 release is the last that will support it.
In my opinion, you would be in a better postion to convert to a shadow implementation and begin to explore the evolving features built upon that.
http://docs.hp.com/en/5992-3387/index.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2009 06:02 AM
06-29-2009 06:02 AM
Re: password aging policies in HP-UX
/usr/lbin/getprpw test
This and the associated comands will work on a trusted system.
passwd -sa will provide you a good report and flag users that have not logged in and changed their passwords recently.
Trusted system is as JRF notes orphan technology, and you may wish to study alternatives so that your future HP-UX 11 v 4 systems will work with older systems.
Shadow password is available from http://software.hp.com and may be built into 11.31. Shadow password is based on Linux which will make it easier not to remember two different rule sets when dealing with multi platform systems.
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-2009 02:46 PM
06-29-2009 02:46 PM
Re: password aging policies in HP-UX
This is correct. Only root can use modprpw and getprpw and they are located in a special directory: /usr/lbin. This directory should be made part of root's PATH. Add it to root's .profile like this:
PATH=$PATH:/usr/lbin
Then logout and login as root and not getprpw will work without a full path (your test above was missing the leading "/", always required for fullpath names.
> There is no file "/etc/default/security" in my system.
Correct. There is no security file -- you must create it by first reading the man page: security
Then add the features that you want. NOTE: spelling must be exact and there will never be any error message when you have an error in the security file. Also note: unlike virtually any other configuration file, a # character ANYWHERE on the line causes the entire line to be ignored (silently).
> So i need best guide (pdf / html) to practice above things.
Bookmark this location for everything there is to know about HP-UX:
http://docs.hp.com
And as is true for all Unix systems, the man page is the first place to look:
man getprpw
man modprpw
man security
And be sure to read the bottom of the man page where it says: "See also"
Now you did not show you release number (10.20, 11.00, 11.11, etc) so some of the comments above do not apply and some features are not found or are incomplete if you have not applied any patches.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2009 09:01 PM
06-29-2009 09:01 PM
Re: password aging policies in HP-UX
Download the pdf file of "HP-UX System Administrator's Guide: Security Management HP-UX 11i Version 3" from the below link.
http://docs.hp.com/en/5992-3387/5992-3387.pdf
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2009 04:28 AM
06-30-2009 04:28 AM
Re: password aging policies in HP-UX
Thanks a lot for you suggestoins.
We are still using HPUX 11.00 and 11.11.
We dont have any single server with HPUX 11iV3, So i can not practice myself in 11iv3.
And i want to learn all the important configurations related to trusted system, since i have to the currently available HPUX 11.00 and 11.11.
Mainly i want notes for Password aging policies and auditing and others (If anything is important.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2009 04:33 AM
06-30-2009 04:33 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2009 07:21 AM
06-30-2009 07:21 AM
Re: password aging policies in HP-UX
"configuring /etc/defaults/security", "password aging policies" and "auditing".
So i need best guide (pdf / html) to practice above things."
I'm not sure what there is to "practice". the settings for each OS revision are quite specific as to what they do and how you set them (and the defaults). In addition, "auditing" as relates to what I've used it for is system accounting, which is something else entirely.