- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Is there an easy way to limit concurrent login ses...
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
01-05-2000 06:05 AM
01-05-2000 06:05 AM
Is there an easy way to limit concurrent login sessions?
given user can have. If anyone knows, please respond to my email address and/or
post in this forum. Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2000 05:30 PM
01-05-2000 05:30 PM
Re: Is there an easy way to limit concurrent login sessions?
In your /etc/profile add the following lines
USER=$(whoami)
NBCNX=`who -H | grep ${USER} | grep -v root | wc -l`
if [ ${NBCNX} -gt 2 ]
then
echo "MSG login restrited"
exit
fi
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2000 05:34 PM
01-05-2000 05:34 PM
Re: Is there an easy way to limit concurrent login sessions?
number of $LOGNAME for that login id and exit if it is above your limit. Call
this script thro' /etc/profile.
Hope this helps you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2000 07:42 AM
01-06-2000 07:42 AM
Re: Is there an easy way to limit concurrent login sessions?
/etc/profile
.
.
trap 1 2 3
if [ "$LOGNAME" != "root" ]
then
if [ `who -u | awk ?{ print $1}?|grep "$LOGNAME"
| wc -l ` -gt 1 ]
then
clear
echo "Number of Conecctions Exceeded"
echo "CONECTION REFUSED"
exit
fi
fi
.
.
.
.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2007 06:07 PM
03-20-2007 06:07 PM
Re: Is there an easy way to limit concurrent login sessions?
You can set NUMBER_OF_LOGINS_ALLOWED in /etc/default/security file.
$ man 4 security
...
NUMBER_OF_LOGINS_ALLOWED
This parameter controls the number of simultaneous logins allowed per user. This is applicable only for non-root users.
NUMBER_OF_LOGINS_ALLOWED=0 Any number of logins are allowed per user.
NUMBER_OF_LOGINS_ALLOWED=N N number of logins are allowed per user.
Default value: NUMBER_OF_LOGINS_ALLOWED=0
-----------
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2007 04:28 AM
03-21-2007 04:28 AM
Re: Is there an easy way to limit concurrent login sessions?
limit the number of telnet/ssh/rlogin sessions,
but it will only let you set the limit per IP address
and not per user. If a user is tied to a particular
IP address in your network, then IPFilter is
the quick and easy solution.
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2007 04:38 AM
03-21-2007 04:38 AM
Re: Is there an easy way to limit concurrent login sessions?
NUMBER_OF_LOGINS_ALLOWED=n.
Man security for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2007 04:55 AM
03-21-2007 04:55 AM
Re: Is there an easy way to limit concurrent login sessions?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2007 04:48 PM
03-21-2007 04:48 PM
Re: Is there an easy way to limit concurrent login sessions?
LOGIN_SESS=`who | grep $LOGNAME | wc -l`
if ( $LOGIN_SESS >= 1 )
then
echo "You are already logged on this system."
echo "No more sessions allowed."
exit
fi
User can always modify it though.