6
0
I have a script that will be executed through SSH. My SSH server is configured to always trigger this script, so the user doesnt have access to actual machine.
One of the features of this script is to edit a file, I wonder if there is a way to invoke VIM(or some other console based editor) without allowing it to edit other files or to execute commands. I want the VIM to be forced to edit only the file opened.
1It sounds like there might be better solutions to your overall problem. Please state what problem you actually try to solve. – Daniel Beck – 2012-05-26T12:12:22.197
Like @DanielBeck says, there may be a better solution. See chroot. Check out my post. http://superuser.com/a/430427/67952
– nelaaro – 2012-05-30T07:34:23.350