- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- User add information command line
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
Forums
Discussions
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
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
08-13-2007 04:28 PM
08-13-2007 04:28 PM
Can you please tell me what command line options are there to get the following user parameters? The things we can see in SAM--> Users and Groups -> Modify users Security Policies.
1. Password ageing policy
2. General User account policies
a)Account life time (days)
b)unsuccesful login tries allowed
c) Authorize User to Boot to Single-user State
Also what command can i use to create a user by setting these parameters?
1. Password ageing policy -> Disabled
2. General User account policies
a)Account life time (days) --> None Infinite
b) unsuccesful login tries allowed --> Customze --> 0
c) Authorize User to Boot to Single-User State --> No
Once i get the commands i hope to put in a script that can do on all servers.
Please help
Regards
George Abraham
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2007 06:29 PM
08-13-2007 06:29 PM
Re: User add information command line
Section 1
1. Set in /etc/default/security not the command line.
2a. Same concept. To some degree you can effect this from the command line by -G choosing groups for which you have set policy in advance.
2b. A feature of trusted systems, requires enhanced security
2c. You can write a script to interpret the input and add users that you wish to have boot priviledges to the shutdown configuration file.
QUICK TRICK: If you have just done this in SAM you can "view sam log" change the detail setting to command only. You will see all the commands sam issues to comply with your recent requests.
The useradd man page will provide you all create options. Not all of them can be done from the useradd command line. Doing a user this way and looking at the sam command log will give you the needed commands.
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
08-13-2007 06:31 PM
08-13-2007 06:31 PM
Re: User add information command line
I hit submit too soon.
Two other things to look at:
Alternate /etc/skel configurations. You can have an alternate default covering someof your requirements in section 2. You might even be able to experiment and use an alternate version of /etc/default/security
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
08-13-2007 09:20 PM
08-13-2007 09:20 PM
SolutionHere you go.
the commandline is provided in this technical knowledge base
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c01010466-2
point 3 & 4
Hope got a good points from you :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2007 09:21 PM
08-13-2007 09:21 PM
Re: User add information command line
Here you go.
the commandline is provided in this technical knowledge base
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c01010466-2
point 3 & 4
Hope to get a good points from you :-)