LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   vsftpd config - quick question (https://www.linuxquestions.org/questions/linux-newbie-8/vsftpd-config-quick-question-4175451014/)

mpc8250 02-20-2013 05:55 PM

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 ?

bathory 02-21-2013 02:28 AM

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


All times are GMT -5. The time now is 06:13 AM.