Tuesday, January 29, 2008

CHROOT command

The chroot command changes the 'root' to another location. This command is used to create a sandbox for the users. Once a new root is declared via chroot, any reference that a user makes to '/' will resolve to the new directory.

This is a very good idea to restrict users working under the real root filesystem.

Eg:- chroot /home/sushanth

This command changes the root of my server to /home/sushanth.

This means

vi /test

will cause test file to open under /home/sushanth

Blogged with Flock

No comments: