Linked by Thom Holwerda on Sun 29th Jan 2006 16:04 UTC, submitted by Falko Timme
Privacy, Security, Encryption "This tutorial describes how to install and configure OpenSSH so that it will allow chrooted sessions for users. With this setup, you can give your users shell access without having to fear that they can see your whole system. Your users will be jailed in a specific directory which they will not be able to break out of."
Permalink for comment 90742
To read all comments associated with this story, please click here.
could someone modify rbash?
by ozonehole on Mon 30th Jan 2006 00:35 UTC
ozonehole
Member since:
2006-01-07

The presented solution works, but sure seems overly complicated. I've long wondered why somebody doesn't modify the rbash (restricted bash) shell to solve this problem. For those not aware of it, rbash prevents users from changing directories with the cd command. Unfortunately, that's too restrictive - you want users to be able to cd within their own home directory, you just don't want the cding into other people's home directories. Couldn't rbash be modified to do this? I wish I were a good enough programmer to hack this myself.

See "man rbash"

Reply Score: 1