LinuxQuestions.org
Help answer threads with 0 replies.
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 03-20-2012, 01:31 AM   #1
fernfrancis
Member
 
Registered: Feb 2009
Location: Goa(India)-Sharjah(UAE)
Distribution: RHEL,centos,fedora,ubuntu
Posts: 234

Rep: Reputation: 18
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
 
Old 03-20-2012, 03:17 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,167
Blog Entries: 1

Rep: Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033
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

Last edited by bathory; 03-20-2012 at 04:36 AM. Reason: typo
 
Old 03-20-2012, 04:16 AM   #3
fernfrancis
Member
 
Registered: Feb 2009
Location: Goa(India)-Sharjah(UAE)
Distribution: RHEL,centos,fedora,ubuntu
Posts: 234

Original Poster
Rep: Reputation: 18
thanx it worked for me
 
  


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
how to setup ftp server in centos 5.0 melvinong Linux - Server 15 06-18-2012 12:55 AM
LXer: Build An FTP Server on CentOS 6 | Linux Hangout LXer Syndicated Linux News 0 01-14-2012 07:10 AM
FTP Server in Centos Centos_user Linux - Server 12 02-26-2010 12:39 PM
FTP server centos w. webgui sfrederiksen Linux - Newbie 2 01-24-2010 08:42 AM
CentOS Opening port for FTP Server Thin Linux - Distributions 3 11-16-2005 11:38 AM

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

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