LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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


Hi,
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 mydomain.com
Trying 127.0.0.1...
Connected to mydomain.com (127.0.0.1).
Escape character is '^]'.
Password:
mydomain00> Sun Oct 10 22:37:04 PDT [telnet_0:info]: root logged in from host: 10.1.0.5

mydomain00> pwd
"/var/www/pwd"

mydomain00>
 
Old 10-11-2010, 01:06 AM   #2
paulsm4
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:
http://www.howtoforge.com/chrooted-s...l-debian-lenny

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

IMHO ..
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:02 AM.

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