1

I ran this command:

yum install rbash

And for some reason it told me that the package wasn't available. It didn't come pre-installed on my system either and when I looked it up I was unable to find anyone else having this issue. So how do you install rbash on CentOS 7?

Jeff Schaller
  • 66,199
  • 35
  • 114
  • 250

1 Answers1

4

rbash is just bash invoked with the -r or --restricted option. All you have to do is link bash to rbash:

ln /bin/bash /bin/rbash

When invoked as rbash, bash will automatically act as restricted.

jesse_b
  • 35,934
  • 12
  • 91
  • 140