Restricted Shell Running on Python2.7
git clone https://github.com/Charliedean/RestrictMyShell.gitcd RestrictMyShell./RestrictMyShell.pyshould create config filenano /etc/restrictmyshelland add whitelisted commands on newlinescp ./RestrictMyShell.py /bin/restrictmyshellchmod +x /bin/restrictmyshellnano /etc/passwdto enable restrictmyshell
- Example: test:/home/test:/bin/restrictmyshell
- Grant Willcox