Jan 122011
ln -fs /bin/bash /bin/rbash
echo /bin/rbash >> /etc/shells
chsh -s /bin/rbash user-with-limited-access
One Response to “Restricted bash”
Sorry, the comment form is closed at this time.
ln -fs /bin/bash /bin/rbash
echo /bin/rbash >> /etc/shells
chsh -s /bin/rbash user-with-limited-access
Sorry, the comment form is closed at this time.
BTW, you need to do this only on legacy system like CentOS 5 (yes, CentOS 5 is too old), for modern systems like Ubuntu 10.10, rbash is part of bash package.