Even though /etc/passwd
and $SHELL
confirm that the default shell is rbash, the restrictions as described by rbash manual does not apply.
For example, I can change directory with cd
, I can change the PATH
, etc.
However, when I manually type bash -r
, all restrictions are in place.
I'm using Ubuntu 18.04.4 LTS
Any ideas what is causing this behaviour? Is there any workaround for Ubuntu as it seems to be working on CentOS?