- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Setting expiry dates for users (user ids) in hpux.
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
10-13-2009 09:31 AM
10-13-2009 09:31 AM
I am using HPUX 10.20, 11.00 and 11.11, all are running in standard mode.
How to set the expiry dates for users (user ids).
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2009 09:41 AM
10-13-2009 09:41 AM
Re: Setting expiry dates for users (user ids) in hpux.
The age string is at the end of the encrypted password string after the coma ","
username:XXXXXXXXXXXXX,1234:UID:GID:....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2009 10:07 AM
10-13-2009 10:07 AM
Re: Setting expiry dates for users (user ids) in hpux.
Thanks, but i know this.
Is there any way to set the expiry dates for users not for passwords in hpux?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2009 10:28 AM
10-13-2009 10:28 AM
Re: Setting expiry dates for users (user ids) in hpux.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2009 10:55 AM
10-13-2009 10:55 AM
Re: Setting expiry dates for users (user ids) in hpux.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2009 11:30 AM
10-13-2009 11:30 AM
Solutionusername:*:UID:GID:....
In addition to the asterisk you can add another meaningful word such as LOCKED etc as in
username:**LOCKED**:UID:GID:....
username:**DISABLED**:UID:GID:....
You must have at least one asterisk in the encrypted password field.
Having the hp-ux security packages and trusted systems gives you some more flexibility
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2009 12:21 PM
10-13-2009 12:21 PM
Re: Setting expiry dates for users (user ids) in hpux.
For OS users in /etc/passwd
userdel
# deletes the user
Commonly -r will be used to recursively delete that users files.
passwd -l
# locks the user immediately.
A great deal of what you know about 10.20, 11.00 and 11.11 will still work in 11.31
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
10-14-2009 02:20 AM
10-14-2009 02:20 AM
Re: Setting expiry dates for users (user ids) in hpux.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2009 02:56 AM
10-14-2009 02:56 AM
Re: Setting expiry dates for users (user ids) in hpux.
According to what you are looking for, everyone here suggested solutions, and I want to summarize what I would do if I were you:
First make a script does disable a specific user by password Lock OR userdel facility.
Then, I d put this script in cronjob so I can adjust whenever you want to run disable that user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2009 02:59 AM
10-14-2009 02:59 AM
Re: Setting expiry dates for users (user ids) in hpux.
>>what is the command to disable the user account in hpux
passwd -l will lock the user.
or open your /etc/passwd file in vi or vipw put a "#" hash mark infront of the user.
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2009 04:01 AM
10-14-2009 04:01 AM
Re: Setting expiry dates for users (user ids) in hpux.
A # isn't a comment char in /etc/passwd. You have just added a # to the user name.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2009 07:38 PM
10-14-2009 07:38 PM
Re: Setting expiry dates for users (user ids) in hpux.
>>A # isn't a comment char in /etc/passwd. You have just added a # to the user name.
If you put a hash mark at the beginig of a line that means that user not able to login see the below example
suraj:*:108:103:Suraj Sankari SA:/home/suraj:/usr/bin/ksh
if i put like this then suraj not able to login into the server
#suraj:*:108:103:Suraj Sankari SA:/home/suraj:/usr/bin/ksh
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2009 12:35 AM
10-15-2009 12:35 AM
Re: Setting expiry dates for users (user ids) in hpux.
#suraj:*:108:103:Suraj Sankari SA:/home/suraj:/usr/bin/ksh
(You need to remove that "*" to test. Also did you try logging on with #suraj?)
When I added a "#", I could su to it and got this:
ll xxxxxx
-rw-rw-r-- 1 #meyer 0 Oct 15 01:22 xxxxxx
$ su \#meyer
$ id
uid=26751(#meyer)