- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to set telnet user restriction?
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
07-31-2003 05:35 PM
07-31-2003 05:35 PM
how to set telnet user restriction?
I found telnet session restriction for a server in this forum .but in my case ,it is a little bit different from that.
I want to know how to make telnet restriction for a server.
I mean that only 5 users can access a server and then the ohters cannot access the server through TELNET.
I tried to find out ,but fail to know that.
Does anyone know how to set it up?
please.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2003 05:39 PM
07-31-2003 05:39 PM
Re: how to set telnet user restriction?
If you only want 5 users to access a server, then only setup 5 user accounts.
Is this what you mean?
Cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2003 05:49 PM
07-31-2003 05:49 PM
Re: how to set telnet user restriction?
You could also write a script that runs from /etc/profile which looks for the number of connected users and makes a judgement on whether the number is exceeded or not before allowing or terminating the session.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2003 06:16 PM
07-31-2003 06:16 PM
Re: how to set telnet user restriction?
As mentioned by Michael, you could restrict the number of device files, but that will still cause problems because anyone can login twice and prevent one of the allowed users from access. Obviously you have more than 5 users too.
I think the best method would be to modify the /etc/profile and only allow the 5 users in and logoff anyone else.
Cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2003 06:34 PM
07-31-2003 06:34 PM
Re: how to set telnet user restriction?
Cnt=`who -uH | cut -f1 -d' ' | wc -l`
echo "Current active sessions = ${Cnt}.";
sleep 1
if [ "${Cnt}" -gt 5 ]
then
echo "nnWarning: Too many concurrent login!"
exit
fi
unset Cnt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2003 06:39 PM
07-31-2003 06:39 PM
Re: how to set telnet user restriction?
I have thought of another possibility.
You could only allow telnet access based upon their ip address. The only problem is if you have dhcp for their ip address :-(
To set that up, look at /var/adm/inetd.sec file or refer to the inetd.sec man page.
Cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2003 07:13 PM
07-31-2003 07:13 PM
Re: how to set telnet user restriction?
Thanks for your reply so far.
but I don't want to know concurrent user restriction but Telnet user's connection restriction.
My Customer want to know if there is any way to restrict telnet user connection.
Not special IP using inetd.sec or concurent user restriction.
Only 5 user can connect a server through TELNET and the other users cannnot connect the server anymore after 5 user telnet connection.
Hope to explain well.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2003 07:47 PM
07-31-2003 07:47 PM
Re: how to set telnet user restriction?
Hopefully I understand correctly.
If you only want to allow a total of 5 users to be able to telnet to a server, then
On HP-UX 11.0, remove the file /dev/pts/tf. You don't have to remove any others.
That will only allow 5 telnet sessions for the server.
I hope that is what you are wanting.
Cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2003 07:50 PM
07-31-2003 07:50 PM
Re: how to set telnet user restriction?
This was introduced through patch. This file resides (security)in /etc/default directory.
This has option as NUMBER_OF_LOGINS_ALLOWED to the no of logins you want.
Or as suggested by others you can put code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2003 08:27 PM
07-31-2003 08:27 PM
Re: how to set telnet user restriction?
I succeed to restrict user connection through removing /dev/pty/tf (in case of 5 user).thanks.
can you please let me know the script of /etc/profile for restriction telnet user connection?
I cannot find the number of user in the /etc/profile for this case.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2003 03:42 AM
08-01-2003 03:42 AM
Re: how to set telnet user restriction?
you can make entry in /var/adm/inetd.sec for
telnet allow i/p for your 5 user and for rest of the usrs you can deny it. For more referance refere man pages of inetd.sec