Created
July 22, 2013 16:23
-
-
Save kaelzhang/6055255 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "/bin/rbash" >> /etc/shells | |
cp /bin/bash /bin/rbash | |
useradd -s /bin/rbash <ssh-user> | |
passwd <ssh-usr> | |
echo "export PATH=/home/<ssh-user>" > /home/<ssh-user>/.bash_profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment