LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   ftp server in centos (https://www.linuxquestions.org/questions/linux-server-73/ftp-server-in-centos-935405/)

fernfrancis 03-20-2012 01:31 AM

ftp server in centos
 
Hi All

I have setup a ftp server in centos 6.2.

i have provided access to a particular directory in the config file, this configuration works fine in mozilla browser but not in internet explorer , my entire root directory is shared when i ftp through IE but not through mozilla.

my config file is as below
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=NO
listen=YES
local_root=/cvsroot/Operation_data/
anon_upload_enable=NO
secure_chroot_dir=/
pam_service_name=vsftpd
userlist_enable=YES

Please advice

bathory 03-20-2012 03:17 AM

Hi,

I guess you want to keep users into the local_root directory. If that's the case, you should add
Code:

chroot_local_user=YES
BTW setting "secure_chroot_dir=/" isn't the right thing to do. According to vsftpd.conf documentation:
Quote:

secure_chroot_dir
This option should be the name of a directory which is empty. Also, the directory should not be writable by the ftp user. This directory is used as a secure chroot() jail at times vsftpd does not require filesystem access.

Default: /usr/share/empty
Regards

fernfrancis 03-20-2012 04:16 AM

thanx it worked for me


All times are GMT -5. The time now is 05:05 PM.