Hi!
I was wondering if somebody may be able to help.
The need has arisen to have a access solution where the following can be achieved:
1) Users have access to be able to SSH or SCP onto a node
2) There is no reason to disallow SFTP
3) Users are in a chroot environment, and have restricted shell. The restricted shell prevents users from running certain commands directly - such that a wrapper script can be used to vet the commands that are run.
Everything works but SCP. SCP and SFTP both seem to want to use exec, and exec is prohibited in the restricted shell.
There is a lot of help on the internet describing how to get SCP anmd SFTP working without command line access - but I have failed so far to find anyone trying to do anything similar to the above.
Thanks in advance for any help.
I was wondering if somebody may be able to help.
The need has arisen to have a access solution where the following can be achieved:
1) Users have access to be able to SSH or SCP onto a node
2) There is no reason to disallow SFTP
3) Users are in a chroot environment, and have restricted shell. The restricted shell prevents users from running certain commands directly - such that a wrapper script can be used to vet the commands that are run.
Everything works but SCP. SCP and SFTP both seem to want to use exec, and exec is prohibited in the restricted shell.
There is a lot of help on the internet describing how to get SCP anmd SFTP working without command line access - but I have failed so far to find anyone trying to do anything similar to the above.
Thanks in advance for any help.