LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-20-2013, 05:55 PM   #1
mpc8250
LQ Newbie
 
Registered: Jan 2013
Posts: 7

Rep: Reputation: Disabled
vsftpd config - quick question


Hi All

We have Oracle Linux Enterprise 5 running.
We like to configure vsftpd so that users can download from the web browser.
We have a NFS path that we set in vsftpd.conf but for unclear reason it keeps using /var/ftp using ftp://hostname.pa.com in the web browser.

[root@hostname ~]# grep ftp /etc/passwd
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin

confirms it. But we thought we could change the default path easily in vsftpd.conf with using either one below.

local_root=/scratch/builds
anon_root=/scratch/builds

/scratch/builds is a NFS directory
[root@hostname ~]# ls -ld /scratch/builds
drwxrwxrwx 2 4294794 bin 2 Feb 20 11:19 /scratch/builds


When we use anon_root=/scratch/builds, it asks for login/password which we entered and it brings us to the user's home directory which is not what we want.

Name (hostname:root): anonymous
331 Please specify the password.
Password:
500 OOPS: vsftpd: refusing to run with writable anonymous root
Login failed.



Ideally, we only want user coming to ftp://hostname.pa.com and be able to download with no prompt for login/password.

on IE, for some reason, the url must be ftp://hostname.pa.com/scratch/builds to get to /scratch/builds.
Using IE with ftp://hostname.pa.com/ shows the / directory.
How do we stop IE from showing files and folders under / and to only show at /scratch/builds ?

What are we doing wrong ?

Last edited by mpc8250; 02-20-2013 at 08:01 PM.
 
Old 02-21-2013, 02:28 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,168
Blog Entries: 1

Rep: Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038
Hi,
Quote:
500 OOPS: vsftpd: refusing to run with writable anonymous root
Newer versions of vsftpd do not allow the jail directory to be writable. So in your case, given that you want your users to be able only to d/l, you can use:
Code:
chmod a-w  /scratch/builds
And you don't need
Quote:
local_root=/scratch/builds
Quote:
Ideally, we only want user coming to ftp://hostname.pa.com and be able to download with no prompt for login/password.
You can use
Code:
no_anon_password=YES
Regards
 
  


Reply



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
vsFTPd, firewall, and passive ports - A quick question ddc441 Linux - Server 1 07-30-2009 10:44 AM
Quick VSFTPD performance Question HavocStyles Linux - Server 1 11-20-2008 11:07 PM
samba smb.config question (quick question) TheDOGG Linux - Networking 1 03-02-2004 07:19 AM
Quick Config Question Haon Linux - Newbie 0 02-21-2004 04:20 PM
vsftpd config question feixiang Linux - Networking 0 04-02-2003 11:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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