1834255 Members
1928 Online
110066 Solutions
New Discussion

/etc/default/security

 
SOLVED
Go to solution
Lori Burgess
New Member

/etc/default/security

I was wondering if there is a way to put exceptions into the security file. Example would be everyone but this user is allowed to only login three times?? Is this possible??

Thanks
5 REPLIES 5
Patrick Wallek
Honored Contributor
Solution

Re: /etc/default/security

That can't be done in /etc/default/security, BUT if the system is trusted then you can go into SAM and modify the security policies for individual users. If you want to work from the command line, you can use the modprpw command.

If you are on HP-UX 11.11 or later, 'man modprpw' for more information.
Pete Randall
Outstanding Contributor

Re: /etc/default/security

I don't think the security file handles exceptions like this. You would be better off to add this logic to /etc/profile, testing the user and the number of logins and exiting if more than three.


Pete

Pete
Lori Burgess
New Member

Re: /etc/default/security

Thank you for your reply! I just wanted to make sure there was no way to do this in the security file.
Lori Burgess
New Member

Re: /etc/default/security

all set thank you very much
doug hosking
Esteemed Contributor

Re: /etc/default/security

As previously noted, your best bet is probably to change the system defaults, then override in individual user accounts. On newer versions of HP-UX 11.23 and later, you can use userdbset to do this. If in trusted mode, the process is a bit different. (/usr/lbin/modprdef changes system defaults, while /usr/lbin/modprpw changes individual accounts. Usually you would want to manipulate these through SAM.)