- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Restricting No Of Users
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
11-26-2002 06:12 PM
11-26-2002 06:12 PM
Restricting No Of Users
I want to Restrict my Hp9000 Box to a specific No of People(ie 50 ) to Access. How do i Restrict the no of users without recfging the Kernel, , If it's possible how do i find the No of Users Logged in and Kill the Users-logins exceeding the Specific No.
Thanks In ADvance
Asif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2002 06:17 PM
11-26-2002 06:17 PM
Re: Restricting No Of Users
The kernel parameters for this are:
npty
nstrpty
nstrtel
These are for HPUX 11.
The default in the kernel is 60.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2002 06:39 PM
11-26-2002 06:39 PM
Re: Restricting No Of Users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2002 06:51 PM
11-26-2002 06:51 PM
Re: Restricting No Of Users
I like Michaels method better - the script/.profile idea because it allows you to get creative and changes won't require a reboot - those kernel parameters will force a reboot.
Plus, with a script/.profile, you could "always" allow certain CRITAL users access to the system, or even a "GROUP" of users.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2002 07:24 PM
11-26-2002 07:24 PM
Re: Restricting No Of Users
hey if you want to restrict specific 50 login id's you can use the script below.
careate a list of 50 login Id's in /etc/Login_Allowed
# vi /etc/Login_Allowed
:root:
:user1:
:user2:
Put this script into your /etc/profile
===================================
#!/bin/sh
Access_List=/etc/Login_allowed
Login_Name=`/usr/bin/logname`
if [ -f /etc/Login_allowed ]
then
Allowed=`grep ":$(logname):" /etc/Login_allowed | awk -F":" '{print $2}'`
if [ "_$Login_Name" != "_$Allowed" ]
then
echo " You are not authorise !"
exit 0
else
echo " Login Sucessfull !!"
fi
fi
===================================
-Niraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2002 08:53 PM
11-26-2002 08:53 PM
Re: Restricting No Of Users
- Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2002 09:16 AM
12-02-2002 09:16 AM
Re: Restricting No Of Users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2002 09:33 AM
12-02-2002 09:33 AM
Re: Restricting No Of Users
Another easy way to accomplish this is by adding this line to /etc/profile
set -i
LOGGED_IN=`who | wc -l`
if [ ${LOGGED_IN} -gt 50 ] ; then
echo "System limit of 50 users reached. Contact System Adminstrator for help"
exit 0
fi
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2002 10:05 AM
12-02-2002 10:05 AM
Re: Restricting No Of Users
Note that there is no code for /etc/default/security in the obsolete 10.20 version of HP-UX.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2002 10:47 AM
12-02-2002 10:47 AM