Web Hosting Talk







View Full Version : Limiting SSH accounts


Ned
12-11-2002, 11:56 AM
HI,

I'm not sure how to do this but i'm sure one of you gods out their knows how to do it.

This is what I want to do (system is redhat 7.3):

I want to limit ssh users so they can't browes out of their home directory and if possible so they don't have access to certain commands such as top, wget, users, and uptime (not so important uptime).

Is there a way I can do this at all?

I'm new to doing this type of stuff on linux so a morons guide to doing it would be excellent.


Thanks for your help in advance.

trif
12-11-2002, 12:37 PM
Use ensim.

Ned
12-11-2002, 12:58 PM
this isn't used for webhosting its for games servers so ensim isn;t appropriate

Wicked187
12-11-2002, 01:11 PM
chroot will help you out considerably. Basically, you build a "jail" that the user can gain access to, and it is completely blocked off to the rest of the system. Within the jail, you place things you all them to have. There are a couple of decent articles on doing this, on is on Linux.com, and the other is in the Dec02 Linux Magazine.

James[UH]
12-11-2002, 01:38 PM
FYI:

You cant use chroot if you plan to use symlinks.

We have that problem, so it take a while trying to find out the right permissions etc to place on all the folders/config files we didnt want ppl accessing on our shell server.

Got it sorted now though.