Skip to Content
Advanced Infrastructure Penetration Testing
book

Advanced Infrastructure Penetration Testing

by Chiheb Chebbi
February 2018
Intermediate to advanced
396 pages
9h 38m
English
Packt Publishing
Content preview from Advanced Infrastructure Penetration Testing

The chroot command 

chroot is a technique for separating a non-root process and its children from the other system components. This isolation is designed in the Linux operating system, to make sure that when a subsystem is compromised, it won't affect the entire system. The idea is to make the process think that it runs in the root folder, but in fact, it will be in a directory created by the administrator. So, let's take a look at the required steps to build a chroot jail: 

  1. First, you need to create a new user and name it; for example, prisoner:
  1. Add the user to group root gpasswd -a prisoner root
  2. You can check whether you added the new ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Web Penetration Testing

Practical Web Penetration Testing

Gus Khawaja
Securing Network Infrastructure

Securing Network Infrastructure

Sairam Jetty, Sagar Rahalkar

Publisher Resources

ISBN: 9781788624480Supplemental Content