LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-26-2002, 01:10 AM   #1
Lexx
LQ Newbie
 
Registered: Feb 2002
Distribution: Slackware 8.0 (2.4.5)
Posts: 16

Rep: Reputation: 0
How to restrict telnet access


Sup folks,

I have slackware 8.0 installed on my machine, I know how to setup users and give them passwords and assign them to groups, what I would like to do however, is to restrict them to their starting directory which is located in my /home/(username) folder.

How do I go about this? If I chmod 111 home, they can't cd .. into it, apache can still serve pages out of it, but the user that's shelled in can still cd / and that scares me! hehe

Help and insight appreciated!
Alex
 
Old 02-26-2002, 02:32 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
well, as i would recommend ssh instead of telnet. the best way for them or to restrict them to their home directories and unable to read other directories would be to create a group that has access to those directories and not the users that are telnetting to their own directories. basically limiting them to only being able to read, write or execute to their own directories and no others.
 
Old 02-26-2002, 08:05 AM   #3
te_conway
Member
 
Registered: Apr 2001
Location: MA
Distribution: redhat 7.2
Posts: 182

Rep: Reputation: 30
After a nasty rootkit hack I concur, loose telnet in favor of sshd
 
Old 02-26-2002, 10:59 AM   #4
Lexx
LQ Newbie
 
Registered: Feb 2002
Distribution: Slackware 8.0 (2.4.5)
Posts: 16

Original Poster
Rep: Reputation: 0
Nod nod..

Strongly considering it then...anyone had a chance to mess with rbash as well?
 
Old 02-26-2002, 03:55 PM   #5
Lexx
LQ Newbie
 
Registered: Feb 2002
Distribution: Slackware 8.0 (2.4.5)
Posts: 16

Original Poster
Rep: Reputation: 0
How do I go about limiting access to a certain directory only on a user or group basis with SSH?

Thanks!!
Alex
 
Old 02-27-2002, 04:59 AM   #6
LinuxGod
LQ Newbie
 
Registered: Aug 2001
Location: Cave Mountain
Distribution: Redhat Only
Posts: 29

Rep: Reputation: 15
Post

All these guys are right use SSH instead of telnet to avoid problems in the future.

Thanks
 
Old 02-27-2002, 09:29 AM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Quote:
Originally posted by Lexx
How do I go about limiting access to a certain directory only on a user or group basis with SSH?

Thanks!!
Alex
create a group, add users who belong to that group with access to only a particular directory.
 
Old 02-27-2002, 09:48 AM   #8
Lexx
LQ Newbie
 
Registered: Feb 2002
Distribution: Slackware 8.0 (2.4.5)
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks again..

I got past all these bigger problems, if you have a chance, I posted my final ssh setup question at:

http://www.linuxquestions.org/questi...threadid=15162

Check it out if you have a chance.

Cheers,
Alex
 
  


Reply


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
How restrict to home directory in telnet session cuencano Linux - Security 3 06-14-2005 06:01 PM
Restrict X server access using /etc/security/access.conf anand_kt Linux - General 0 04-22-2005 09:40 AM
How to restrict only one user can use telnet in /etc/hosts.deny? lzyking Linux - Software 2 02-12-2003 08:19 PM
Restrict access by IP waifurchin Linux - Security 3 02-02-2003 08:54 AM
How to restrict a telnet user's permision and not allow anony ftp? gogo Linux - Networking 9 06-23-2002 09:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:36 PM.

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