Quote:
Originally posted by Rocket01
Hello
I am trying to set up a restricted shell for FTP and ssh in red hat linux ver. 7.1 can any one help me... Thanks
|
If you don't have rbash in /bin try the following:
1. create a file in /bin called rbash with the following contents;
#!/bin/bash
/bin/bash --restricted
2. chmod the file to 755
3. add /bin/rbash to /etc/shells
4. change a users shell to /bin/rbash (usermod -s /bin/rbash user) and test it out.
This worked for me and there's no easy way out of the shell that I can see.
Hope that helped.