- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Need clarification for some output fo "passwd"...
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
тАО06-24-2009 03:53 AM
тАО06-24-2009 03:53 AM
Re: Need clarification for some output fo "passwd" command.
>>How to set the aging policies for the users already created and new users.
see the example below
For new user
# useradd ├в o -u 101 \ # UID
-g users \ # primary group
-G class,training \ # secondary groups
-c ├в student user├в \ # comment field
├в m ├в d /home/user1 \ # make a home directory for the user
├в s /usr/bin/sh \ # default shell
-e 1/2/2006 \ # define an account expiration date
user1 # username
For existing user
usermod ├в e 1/2/2006 user1 # change the user├в s account expiration
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2009 03:57 AM
тАО06-24-2009 03:57 AM
Re: Need clarification for some output fo "passwd" command.
I am posting again because of garbage character.
>>How to set the aging policies for the users already created and new users.
see the example below
For new user
# useradd -o -u 101 \ # UID
-g users \ # primary group
-G class,training \ # secondary groups
-c "student user" \ # comment field
-m -d /home/user1 \ # make a home directory for the user
-s /usr/bin/sh \ # default shell
-e 1/2/2006 \ # define an account expiration date
user1 # username
For existing user
usermod -e 1/2/2006 user1 # change the user1's account expiration
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2009 03:58 AM
тАО06-24-2009 03:58 AM
Re: Need clarification for some output fo "passwd" command.
Lookout for /et/default/security file.
http://www.docs.hp.com/en/B2355-60103/security.4.html
Regards
Sunny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2009 06:06 AM
тАО06-24-2009 06:06 AM
Re: Need clarification for some output fo "passwd" command.
Actually my server (HP-UX 11.00) is in standard mode.
But i am able to see some aging policies for some users and not for some users, is it possible.
Ex:
root@lgapps:/etc/default > passwd -s rtanney
rtanney LK 06/18/09 14 28
root@lgapps:/etc/default > passwd -s ze4egi
ze4egi PS
Pls explain me the difference.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2009 06:41 AM
тАО06-24-2009 06:41 AM
Re: Need clarification for some output fo "passwd" command.
The two letter comes just after user name says the status of the account, where possible status are
PS=passworded;
LK=locked; and
NP=no password.
Other parameter indicates the account/password aging details.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2009 06:54 AM
тАО06-24-2009 06:54 AM
Re: Need clarification for some output fo "passwd" command.
The date is the date the password was last set or changed,the "14" refers to the minimum days that must elapse before the password can be changed, and the "28" refers to the maximum days between changes.
Regards
Sunny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2009 07:02 AM
тАО06-24-2009 07:02 AM
Re: Need clarification for some output fo "passwd" command.
For 11.00 the passwd -sa program is less advanced, as you already know.
The /etc/default/security implementation is possible though maybe not with sam.
Try a man page on /etc/default/security if you need more details.
This should be something we can get done.
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-24-2009 07:54 AM
тАО06-24-2009 07:54 AM
Re: Need clarification for some output fo "passwd" command.
What am asking is that why it showing aging policies for "rtanney" and not for "ze4egi", since my system is in standard mode (but not in trusted mode.).
Pls explain me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2009 07:41 PM
тАО06-24-2009 07:41 PM
SolutionIn standard mode, you can have password aging established. See passwd(4):
Password aging is put in effect for a particular user if his encrypted password in the password file is followed by a comma and a non-null string of characters ...
So what do the passwd entries look like for "rtanney" and ze4egi"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2009 08:28 PM
тАО06-24-2009 08:28 PM
Re: Need clarification for some output fo "passwd" command.
Please provide the output of below commands
#passwd -s -a tanney and
#passwd -s -a ze4egi
From the man page of passwd I got this
-s [-a] Display password attributes for all users in the password file. The -a option must be used in conjunction with the -s option when no name is specified. For nisplus, this will display entries in the NIS+ passwd table in the local domain. For files, this is restricted to superuser.
Suraj