- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- maximum simultaneous logins
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-28-2003 06:36 AM
11-28-2003 06:36 AM
Txs
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2003 06:40 AM
11-28-2003 06:40 AM
Re: maximum simultaneous logins
-Karthik S S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2003 06:49 AM
11-28-2003 06:49 AM
Re: maximum simultaneous logins
do you have an script example
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2003 07:04 AM
11-28-2003 07:04 AM
Solutionthis should help:-
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=52512
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2003 07:12 AM
11-28-2003 07:12 AM
Re: maximum simultaneous logins
If you try 'limit login' as search string in the forum header, you'll get several useful earlier answers. Notably:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=98655
hth,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2003 07:13 AM
11-28-2003 07:13 AM
Re: maximum simultaneous logins
I havent tested this.
----
no_logins=`who|grep $LOGNAME|wc -l`
if [[ $no_logins -gt 4 ]]
then
echo "you have exceeded the limit"
exit
fi
-----
replace the 4 with the number you want
HTH,
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2003 07:33 AM
11-28-2003 07:33 AM
Re: maximum simultaneous logins
MAXINST=5
CURRINST=$(who | awk -F " " '{print $1 }' | grep `whoami` |wc -l)
if [ $CURRINST -gt $MAXINST ]
then
echo "You have exceeded the login limit"
exit
fi
You can also customize the MAXINST variable for individual users by adding these lines in .profile of individual users.
-Karthik S S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2003 07:47 AM
11-28-2003 07:47 AM
Re: maximum simultaneous logins
NUMBER_OF_LOGINS_ALLOWED=4
and now no more than 4 logins total for every user is allowed. To have random limits based on the user ID, you'll need to use the /etc/profile and /etc/csh.login code to manage each user's limit by exiting when the limit has been exceeded. You'll likely need the patch PHCO_27721 for 11.0 and PHCO_27694 for 11.11 (both will patch the /usr/bin/login file only, and do not require a reboot)
Bill Hassell, sysadmin