我想创建一个带有受限外壳的新用户,所以我:
ln -s bash rbash # create a symbolic link to bash with a name "rbash"
useradd -s /bin/rbash student # add a new user with a shell pointing to that symlink I've created
passwd student # create a password
su - student # Login as a user
但是之后我可以 cd 进入任何我想要的地方。看起来受限制的外壳不起作用。为什么 ?