- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Limiting users logged in
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-20-2008 05:38 AM
10-20-2008 05:38 AM
Limiting users logged in
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 05:43 AM
10-20-2008 05:43 AM
Re: Limiting users logged in
kmtune |grep pty
npty 200 - 200
or use
# sysdef |grep pty
npty 200
These are the default settings but if you alter the # from 200 to... whatever that will set the limit. Man kmtune or sysdef for more options.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 05:48 AM
10-20-2008 05:48 AM
Re: Limiting users logged in
# kmtune -q maxusers
To change the value of maxusers
# kmtune -s maxusers=99
If kmtune is not working please provide the HPUX version running in ur server.
# uname -a
Rgds
Sreekanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 05:50 AM
10-20-2008 05:50 AM
Re: Limiting users logged in
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 05:54 AM
10-20-2008 05:54 AM
Re: Limiting users logged in
'npty' is for pseudo-terminals. Note that one user can invoke many pseudo-terminal connections.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 05:59 AM
10-20-2008 05:59 AM
Re: Limiting users logged in
The version i am running is: HP-UX flgu02 B.11.23 U 9000/800 3237201803 unlimited-user license
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 06:03 AM
10-20-2008 06:03 AM
Re: Limiting users logged in
# /usr/sbin/kmtune.
You can use # whereis
Need not use SAM.
Rgds
Sreekanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 06:09 AM
10-20-2008 06:09 AM
Re: Limiting users logged in
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 06:16 AM
10-20-2008 06:16 AM
Re: Limiting users logged in
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 06:18 AM
10-20-2008 06:18 AM
Re: Limiting users logged in
I'm not sure the maxusers parameter even exists in 11.23... and I don't think setting it would prevent more than 100 people from logging in anyway
How do your users login to the system? At a shell prompt?
Why do you need to stop the 100th person from logging in?
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 06:36 AM
10-20-2008 06:36 AM
Re: Limiting users logged in
You're right maxusers isn't an option.
I need to limit the number of users because rather than put a user limit on the 10 or so progress databases we use for licencing, we want to put a limit on the server itself and have unlimited user limits on each of the databases creating a 'pool' of licences, if you know what i mean.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 06:53 AM
10-20-2008 06:53 AM
Re: Limiting users logged in
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 07:00 AM
10-20-2008 07:00 AM
Re: Limiting users logged in
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 08:21 AM
10-20-2008 08:21 AM
Re: Limiting users logged in
You can add some test into /etc/profile.
Something like that:
if [ $(who | grep -v root| sort -u |wc -l) -gt 99 ]; then
exit
#You can add here a mail to the user
fi
I don't know which type of license you have, so you can remove sort -u
HTH