Is there any different between root and chroot in Linux? Can anyone please explain them?

  • 10
    Those aren't remotely the same thing. Have you looked them up? – cjm Mar 21 '12 at 16:01

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.

For eg.

$ chroot /media

will change the root directory(/) to /media

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.