Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-26-2002, 01:10 AM
|
#1
|
LQ Newbie
Registered: Feb 2002
Distribution: Slackware 8.0 (2.4.5)
Posts: 16
Rep:
|
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
|
|
|
02-26-2002, 02:32 AM
|
#2
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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.
|
|
|
02-26-2002, 08:05 AM
|
#3
|
Member
Registered: Apr 2001
Location: MA
Distribution: redhat 7.2
Posts: 182
Rep:
|
After a nasty rootkit hack I concur, loose telnet in favor of sshd
|
|
|
02-26-2002, 10:59 AM
|
#4
|
LQ Newbie
Registered: Feb 2002
Distribution: Slackware 8.0 (2.4.5)
Posts: 16
Original Poster
Rep:
|
Nod nod..
Strongly considering it then...anyone had a chance to mess with rbash as well?
|
|
|
02-26-2002, 03:55 PM
|
#5
|
LQ Newbie
Registered: Feb 2002
Distribution: Slackware 8.0 (2.4.5)
Posts: 16
Original Poster
Rep:
|
How do I go about limiting access to a certain directory only on a user or group basis with SSH?
Thanks!!
Alex
|
|
|
02-27-2002, 04:59 AM
|
#6
|
LQ Newbie
Registered: Aug 2001
Location: Cave Mountain
Distribution: Redhat Only
Posts: 29
Rep:
|
All these guys are right use SSH instead of telnet to avoid problems in the future.
Thanks
|
|
|
02-27-2002, 09:29 AM
|
#7
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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.
|
|
|
02-27-2002, 09:48 AM
|
#8
|
LQ Newbie
Registered: Feb 2002
Distribution: Slackware 8.0 (2.4.5)
Posts: 16
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 02:36 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|