- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how can i limit that user1 and user2 can't telnet ...
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
03-31-2004 04:57 PM
03-31-2004 04:57 PM
i don't want them to use telnet.
how can i limit them?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2004 05:03 PM
03-31-2004 05:03 PM
SolutionCreate a group that everybody is in except user1 and user2 and then change the group of /usr/bin/telnet and set the permissions so that only owner and group can execute telnet i.e chmod 550 /usr/bin/telnet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2004 05:26 PM
03-31-2004 05:26 PM
Re: how can i limit that user1 and user2 can't telnet to a hp server?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2004 05:41 PM
03-31-2004 05:41 PM
Re: how can i limit that user1 and user2 can't telnet to a hp server?
if he is using csh then you can add "logout" in the .cshrc file.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2004 05:48 PM
03-31-2004 05:48 PM
Re: how can i limit that user1 and user2 can't telnet to a hp server?
#Do not allow telnet sessions for user1 and user2
user=`whoami`
if [ $user = user1 ]
then
exit
else
if [ $user = user2 ]
then
exit
fi
fi
-Karthik S S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2004 06:01 PM
03-31-2004 06:01 PM
Re: how can i limit that user1 and user2 can't telnet to a hp server?
usermod -s /usr/bin/false user1
usermod -s /usr/bin/false user2
They wont' be able to telnet
regds
Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2004 06:05 PM
03-31-2004 06:05 PM
Re: how can i limit that user1 and user2 can't telnet to a hp server?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2004 06:14 PM
03-31-2004 06:14 PM
Re: how can i limit that user1 and user2 can't telnet to a hp server?
alias telnet='echo Telnet not allowed!'
Now user1 or user2 will not able to use telnet.
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2004 06:20 PM
03-31-2004 06:20 PM
Re: how can i limit that user1 and user2 can't telnet to a hp server?
However, how would you stop people running "/usr/bin/telnet" or "./telnet" or "../telnet" or "../../bin/telnet" etc etc.