Bash allows the user account to recurse to root drive level

Status
Not open for further replies.

siterack_net

Cadet
Joined
Nov 29, 2011
Messages
2
I am trying to setup users with SSH access in somewhat of a "jailed" fashion.
I have tried the various different Shells like Bash, RBash, etc.
While Rbash does restrict the user, it restricts the user from using any "cd" command, even within his own folders.
Bash on the other hand, allows the user to recurse all the way into the root of the mounted drive.
Is there anything I can do to allow a user bash access, but in a jailed environment?
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
You just said it: you can make a jailed environment. Depending on how much access you want them to have to the system, there could be different ways of doing this. Short of a jail or chroot, it's pretty difficult to restrict access within a UNIX system if you're granting them shell access. We have a few cases where we build a jail environment with a shell and *just* the few commands that they're allowed; this is of limited usefulness.
 
Status
Not open for further replies.
Top