LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   How to restrict telnet access (https://www.linuxquestions.org/questions/linux-security-4/how-to-restrict-telnet-access-15081/)

Lexx 02-26-2002 12:10 AM

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! :eek: hehe

Help and insight appreciated!
Alex

trickykid 02-26-2002 01:32 AM

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.

te_conway 02-26-2002 07:05 AM

After a nasty rootkit hack I concur, loose telnet in favor of sshd

Lexx 02-26-2002 09:59 AM

Nod nod..
 
Strongly considering it then...anyone had a chance to mess with rbash as well?

Lexx 02-26-2002 02:55 PM

How do I go about limiting access to a certain directory only on a user or group basis with SSH?

Thanks!!
Alex

LinuxGod 02-27-2002 03:59 AM

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

Thanks

trickykid 02-27-2002 08:29 AM

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.

Lexx 02-27-2002 08:48 AM

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 03:27 PM.