Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to limit users connection??

Status
Not open for further replies.

kat115

Programmer
Feb 6, 2004
57
FR
Hi,

Can someone tell me how to limit users connection? I want to allow users to have only one or two sessions at a time and didn't find how to do?

Can someone also tell me how to specify that i want to authorize some users to connect only from a specific IP address? Do I need a firewall or someone like that?

Thanx a lot for helping!!
kat
 
Hi Kat115


Please try vi Smit!

Security & Users - Users - Change / Show Characteristics of a User - <USER>
In there you'll find a lot of variables to change.

Regards
Oliver
 
I did that already and didn't find any parameter that matches...

 
Kat. I currently have set-up in each users .profile this script:

COUNT=`who | grep ${LOGNAME} | wc -l`
if test
[ $COUNT -gt 1 ]
then

echo " YOU ARE ALREADY LOGGED IN "
echo ""
echo " NUMBER OF TIMES LOGGED IN : $COUNT"
echo " "
echo " PLEASE LOG OUT BEFORE LOGGING IN"
echo " "
echo " ANY PROBLEMS CONTACT I.T."
sleep 6
exit 1
fi

this allows a user to login once. But can be a bit of a pain if he/she has not closed their Telnet session properly.

The count is goverened in this part of the script:

[ $COUNT -gt 1 ]

if you want to allow 2 logins. Then it will be like this:

[ $COUNT -gt 2 ]

Hope that helps?

Jon.

( &quot;To become Wise, first you must ask Questions&quot;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top