- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Restricting the number of user logons
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
04-19-2005 11:10 PM
04-19-2005 11:10 PM
Restricting the number of user logons
Is it possible to restrict the number of times a user logs in to HP-UX 11i so they can only have, say, two concurrent logins?
If so, can this be done globally for all users or is it an individual setting?
Thanks
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2005 11:14 PM
04-19-2005 11:14 PM
Re: Restricting the number of user logons
Depending on the shell they use (sh or ksh), they probably use /etc/profile. You can easily insert code in /etc/profile to check the number of logins they already have and reject them if excessive.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2005 11:17 PM
04-19-2005 11:17 PM
Re: Restricting the number of user logons
you could also try:
Add into
/etc/default/security file
NUMBER_OF_LOGINS_ALLOWED=2
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2005 11:26 PM
04-19-2005 11:26 PM
Re: Restricting the number of user logons
NUMBER_OF_LOGINS_ALLOWED
if you are using ssh then,
change "UseLogin yes" in the /opt/ssh/etc/sshd_config with the following patch installed,
PHCO_27694
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2005 11:35 PM
04-19-2005 11:35 PM
Re: Restricting the number of user logons
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2005 11:40 PM
04-19-2005 11:40 PM
Re: Restricting the number of user logons
I have a question, does this work even if the system is not configured to be trusted??
Regards,
Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2005 11:44 PM
04-19-2005 11:44 PM
Re: Restricting the number of user logons
man secutiry. You have got the answer.
Cheers
D K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2005 11:45 PM
04-19-2005 11:45 PM
Re: Restricting the number of user logons
Yes, the /etc/default/security setting, NUMBER_OF_LOGINS_ALLOWED works on non-trusted systems. See the man page for security. The parameters that require the system to be trusted are clearly identified.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2005 11:48 PM
04-19-2005 11:48 PM
Re: Restricting the number of user logons
Thanks for all the quick and good advice.
The /etc/default/security file does not exist. Is it a case of creating a blank one with only the suggested line to limit logons!?
Thanks again
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2005 11:58 PM
04-19-2005 11:58 PM
Re: Restricting the number of user logons
If the file is not present it points to the default behaviour.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2005 12:06 AM
04-20-2005 12:06 AM
Re: Restricting the number of user logons
having a /etc/default/security allows you to configure your security more flexible.
So as previously mentioned the addition of the NUMBER_OF_LOGINS_ALLOWED allows you to control access systemwide , without extra coding.
Regards