Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


More on LinuxToday


How to Chroot SFTP Users on Linux for maximum security

Jan 21, 2014, 07:00 (0 Talkback[s])
(Other stories by Rahul Panwar)

A chroot on Unix operating systems is an operation that changes the apparent root directory for the current running process and its children. A program that is run in such a modified environment cannot name (and therefore normally not access) files outside the designated directory tree. The term 'chroot' may refer to the chroot(2) system call or the chroot(8) wrapper program. The modified environment is called a 'chroot jail'. From Wikipedia. Why it is required? If you want to set up your Linux box as a web hosting server for its users, you may need to give SFTP access. But they can get access to whole system Linux tree, just for reading but still very unsecure. So it is mandatory to lock them in their home directory. There are many other applications, it;s just a common example, so lets start its configuration.

Complete Story

Related Stories: