Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OpenSSH / Restricted BASH

Status
Not open for further replies.

zisp

Technical User
Jan 8, 2004
1
GB
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top