HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- User account duration
Operating System - HP-UX
1827435
Members
5037
Online
109965
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
09-11-2003 09:22 PM
09-11-2003 09:22 PM
Hi All,
How can I implement user account expiration in 11i. Say I want user1 can access my system for 1yr, how can do it? I tried with -e option of useradd command, but it gave me a message like " need security package". What is this?
Can I do it from SAM?
Thanks in advance,
Best regards
Richard
How can I implement user account expiration in 11i. Say I want user1 can access my system for 1yr, how can do it? I tried with -e option of useradd command, but it gave me a message like " need security package". What is this?
Can I do it from SAM?
Thanks in advance,
Best regards
Richard
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2003 09:32 PM
09-11-2003 09:32 PM
Solution
My first response in this thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x01daccdc59251044b58958073b870a6f,00.html
contains a script as an attachment that was based on just what you need to do.
Here you go.
#!/sbin/sh
MINDAYS=7
MAXDAYS=61
for user in `awk '{ FS=":"; print $1 $5 $6 }' /root/passwd`
do
passwd -r file -n $MINDAYS -x $MAXDAYS $user
echo "Command: useradd -m $user "
done
set MAXDAYS to whatever you need.
This guy reads a copy of /etc/passwd but you can change that.
SEP
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x01daccdc59251044b58958073b870a6f,00.html
contains a script as an attachment that was based on just what you need to do.
Here you go.
#!/sbin/sh
MINDAYS=7
MAXDAYS=61
for user in `awk '{ FS=":"; print $1 $5 $6 }' /root/passwd`
do
passwd -r file -n $MINDAYS -x $MAXDAYS $user
echo "Command: useradd -m $user "
done
set MAXDAYS to whatever you need.
This guy reads a copy of /etc/passwd but you can change that.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
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
09-11-2003 10:12 PM
09-11-2003 10:12 PM
Re: User account duration
Hi Richard
Look at the passwd command, eg:
# passwd -n 7 -x 90 -w 7
See man passwd.
You can set System defaults in SAM:
Auditing & Security -> System Security Policies -> Password Aging Policies.
This will set defaults for all users created.
However I believe your system needs to be trusted to do this. With non trusted systems you can only do it on a user by user basis with the above command.
Cheers
Con
Look at the passwd command, eg:
# passwd -n 7 -x 90 -w 7
See man passwd.
You can set System defaults in SAM:
Auditing & Security -> System Security Policies -> Password Aging Policies.
This will set defaults for all users created.
However I believe your system needs to be trusted to do this. With non trusted systems you can only do it on a user by user basis with the above command.
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2003 06:55 AM
09-12-2003 06:55 AM
Re: User account duration
Richard,
Yes, is the answer if a non-trusted system and only on a users by user basis (and you can set it by number of weeks ie 52 for one year !)
If on a trusted system follow the details that Con O'Kelly provided previous.
Keith
Yes, is the answer if a non-trusted system and only on a users by user basis (and you can set it by number of weeks ie 52 for one year !)
If on a trusted system follow the details that Con O'Kelly provided previous.
Keith
You are either part of the solution or part of the problem
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP