Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 01-29-2009, 07:12 AM   #1
LQ Newbie
Registered: Jan 2009
Distribution: Ubuntu
Posts: 2

Rep: Reputation: 0
Need to block root access in VSFTPD

Dear Linux users,

At the company where i work i'm setting up a ftp server using Ubuntu 8.01 in combination with VSFTPD.

In default when logging into the server as the main user, the home/username directory is displayed.

But when i go up a few folders i'm able to access the root of the hard drive, in our case an unsafe operation.

Is it possible to block access to any folders outside the home folder? I've checked the VSFTPD.conf configuration file but i've found nothing relevant.


Old 01-29-2009, 07:33 AM   #2
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
You need to look at the chroot_local_user setting in vsftpd.conf. That is supposed to keep users in their home directory. I'm not sure what is in a default vsftpd.conf file, but if you look at the man page, the options are pretty well explained.
Old 01-29-2009, 07:34 AM   #3
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
Old 02-05-2009, 02:45 AM   #4
LQ Newbie
Registered: Jan 2009
Distribution: Ubuntu
Posts: 2

Original Poster
Rep: Reputation: 0
I've looked at the vsftpd.conf file and gave a "yes" to chroot_local_user. Then i created a file in wich i made a list of jailed users. Afterwards i did a reset and everything worked. The specified users couldn't reach the root folders anymore, only the home folder!

Thanks a million!


ubuntu, vsftpd, vsftpdconf

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Disable remote root access but allow local root access-- possible? bskrakes Linux - Security 3 03-03-2008 12:15 PM
i need help... how to block internet access... E_l_d_o Linux - General 3 05-03-2007 12:00 PM
how do you block access to a site? smarthouseguy Slackware 3 05-14-2006 10:09 AM
access the block website by certain IP space_beyond Linux - Security 1 06-03-2005 12:33 AM
VSFTPD - Access/Root dir problem lil_drummaboy Linux - Networking 1 05-05-2003 12:32 AM

All times are GMT -5. The time now is 01:13 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration