Is there any different between
chroot in Linux? Can anyone please explain them?
chroot is an operation, it changes the apparent root directory for the current running process and it's children.
root is an account that by default has access to all commands and files on a Linux (Unix based) system.
root directory is the highest directory in a hierarchy.
root directory refers to
/ which you can take as the root of the filesystem. It contains directories such as home, var.
chroot is the command to change the root directory i.e. changing the
/ for different user.
$ chroot /media
will change the
root directory(/) to
This is generally used in services like ftp to allow any user to access only a subtree of the whole directory tree. Thus it provide restrictions upto which a user can traverse.