Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-11-2010, 12:41 AM   #1
Registered: May 2007
Posts: 75

Rep: Reputation: 15
how do I setup/enabled telnet only for particular dir

how do I setup/enabled telnet access only for particular directory, when any user log-in on to my server, he gets something like below pattern on to remote server, and only login to specified directory, also he need to run few bash commands.

[ravi@mydomain00 ~]$ telnet
Connected to (
Escape character is '^]'.
mydomain00> Sun Oct 10 22:37:04 PDT [telnet_0:info]: root logged in from host:

mydomain00> pwd

Old 10-11-2010, 01:06 AM   #2
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

You'd be much better off using sshd instead of telnetd:

1. "telnet isn't secure and you should't really be using it"
<= You've probably heard this before...
... and it *isn't* untrue!

2. "ssh" comes with lots of options to restrict users, restrict IPs,
assign logins to alternate shells (e.g. Restricted Bash "rbash" instead of "bash") and confine them to "chroot" directories.

For example:

3. Besides, "ssh" is more secure and better supported in modern OS's.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SUDO permission setup on particular dir , recursive alok.rhct Linux - Security 3 05-18-2010 06:32 AM
How to setup the install dir of a library rompelstilchen Programming 1 02-02-2007 09:05 PM
Created "htdoc enabled dir" in apache doubt??? tuxfood Linux - Software 0 09-19-2005 12:40 AM
How do I setup telnet on Fedorac1 so I can telnet to it from winxp? mman49 Fedora 6 05-02-2004 12:40 PM
port 143. can't telnet, service enabled, no iptables. help? trossachs Linux - Networking 21 02-18-2004 05:48 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration