ghantoos / lshell

lshell is a shell coded in Python, that lets you restrict a user's environment to limited sets of commands, choose to enable/disable any command over SSH (e.g. SCP, SFTP, rsync, etc.), log user's commands, implement timing restriction, and more.
GNU General Public License v3.0
435 stars 112 forks source link

Lshell with Emacs #165

Open aikane opened 7 years ago

aikane commented 7 years ago

Hello,

Setting up the path, like in this example: [foo] path : ['/var', '/usr']

works correctly in a shell, but using an Emacs basic command Ctrl-d (Dired - Directory) opens up an access to all folders and files, which seems to be a serious bug.

Although, Emacs respects the restrictions of the below command: [default]

a list of the allowed commands or 'all' to allow all commands in user's PATH

allowed : ['ls','echo','cd','ll','emacs', 'ssh']

which means there is some interconnectivity between Emacs and lshell.

The importance here lies in using Emacs as the IDE by the IT Teams, and a necessity of restricting an access to the folders and files.

How this trouble could be overcome?

Thanking You in advance.