LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 01-29-2009, 08:12 AM   #1
Davpronk
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.

Greets,

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

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
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, 08:34 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
http://www.cyberciti.biz/tips/vsftp-...directory.html
 
Old 02-05-2009, 03:45 AM   #4
Davpronk
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!
 
  


Reply

Tags
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 01:15 PM
i need help... how to block internet access... E_l_d_o Linux - General 3 05-03-2007 01:00 PM
how do you block access to a site? smarthouseguy Slackware 3 05-14-2006 11:09 AM
access the block website by certain IP space_beyond Linux - Security 1 06-03-2005 01:33 AM
VSFTPD - Access/Root dir problem lil_drummaboy Linux - Networking 1 05-05-2003 01:32 AM


All times are GMT -5. The time now is 09:59 AM.

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