LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-19-2016, 06:40 PM   #1
marli
LQ Newbie
 
Registered: Jun 2009
Posts: 19

Rep: Reputation: 0
vsftpd local_root being ignored


Hi
I am running a rasbian.
after configuring a local user and vsftpd
with
local_root=/media/usbhdd2/ftp

i log in as the user or myself, it drops me in to /

I do not want the user to have access to the root folder.
any idea why this setting is being ignored?
 
Old 06-20-2016, 03:08 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,910

Rep: Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890
Quote:
Originally Posted by marli View Post
Hi
I am running a rasbian.
after configuring a local user and vsftpd
with
local_root=/media/usbhdd2/ftp

i log in as the user or myself, it drops me in to /

I do not want the user to have access to the root folder.
any idea why this setting is being ignored?
Are you sure you're dropped in the real / of your OS?
Because once you login in a ftp server, you're chrooted in the local_root directory. So running for example pwd, you'll get just "/", which is actually the chroot directory. And "/" means that you cannot get out of it.
 
Old 06-25-2016, 05:52 PM   #3
marli
LQ Newbie
 
Registered: Jun 2009
Posts: 19

Original Poster
Rep: Reputation: 0
nope ..real root
/i can see /etc etc.
 
Old 06-26-2016, 09:34 AM   #4
Chevron7
LQ Newbie
 
Registered: May 2016
Location: UK
Distribution: Debian
Posts: 5

Rep: Reputation: Disabled
What value do you have for chroot_local_user? This should be YES.
 
Old 06-26-2016, 10:57 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,910

Rep: Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890
@OP
Actually it's better to show us the whole vsftpd.conf

Regards
 
  


Reply


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
a parameter in vsftpd conf file without which vsftpd server will not work James0806 Linux - Newbie 1 09-24-2014 01:37 PM
[VSFTPD] 500 OOPS: vsftpd: refusing to run with writable root inside chroot() srijur Linux - Server 1 03-31-2014 05:10 AM
VSFTPD Virtual/Local local_root Permissions Problem (alllmost there) cr-atlanta Linux - Server 1 01-21-2013 07:53 PM
Starting vsftpd for vsftpd: 500 OOPS: SSL: cannot load RSA certificate MisterTickle Linux - Server 2 02-11-2011 08:41 PM
vsftpd problem with local_root Sirkent Linux - Software 2 08-23-2004 11:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:17 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