Restricted Shell Running on Python2.7
git clone https://github.com/Charliedean/RestrictMyShell.git
cd RestrictMyShell
./RestrictMyShell.py
should create config filenano /etc/restrictmyshell
and add whitelisted commands on newlinescp ./RestrictMyShell.py /bin/restrictmyshell
chmod +x /bin/restrictmyshell
nano /etc/passwd
to enable restrictmyshell
- Example: test:/home/test:/bin/restrictmyshell
- Grant Willcox