How to create chroot jail with ability to change some system settings

Posted by Tadeck on Server Fault See other posts from Server Fault or by Tadeck
Published on 2013-10-22T07:32:58Z Indexed on 2013/10/22 9:59 UTC
Read the original article Hit count: 302

How to properly create chroot jail (on Ubuntu, or some some other Linux if not applicable) to make user able to edit system settings (eg. with ifconfig) and be able to communicate with external scripts?

The use case would be to enable user to authenticate using SSH and then be able to perform very limited set of actions from command line. Unfortunately the tricky part is the access to system settings.

I have considered multiple options and the alternative is to setup fake SSH server (eg. with Twisted), try to use restricted shell (however, I seem to need chroot still), or write a script on top of the shell (?).

© Server Fault or respective owner

Related posts about ssh

Related posts about chroot