LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 07: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, 07:33 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
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
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
http://www.cyberciti.biz/tips/vsftp-...directory.html
 
Old 02-05-2009, 02: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



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 4 02-21-2019 04:02 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:15 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
Open Source Consulting | Domain Registration