I was learning about Common shell programs.
When I run cat /etc/shells
, it shows:
# /etc/shells: valid login shells
/bin/sh
/bin/dash
/bin/bash
/bin/rbash
What is /bin/rbash
here? Is it used in scripting?
I was learning about Common shell programs.
When I run cat /etc/shells
, it shows:
# /etc/shells: valid login shells
/bin/sh
/bin/dash
/bin/bash
/bin/rbash
What is /bin/rbash
here? Is it used in scripting?
rbash is a restricted (reduced capabillities) version of bash. See this article: https://en.wikipedia.org/wiki/Restricted_shell
From the article:
From wikipedia
See Soren A's answer for the limitations that apply to restricted shells.
You can run
bash
in restricted modeOn my system:
So if I run
/bin/rbash
, I am runningbash
BUT
As you can easily test: