Using chroot and restricted Bash shells to secure scripts

In this recipe, we will learn about chroot and restricted bash(rbash). The chroot command is used to change the root directory. Using rbash, we can restrict some features of the bash shell for some security purposes.

Get Bash Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.