LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-16-2010, 03:46 AM   #1
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 632

Rep: Reputation: 33
vsftpd on CentOS 5.5


Hello,

I'm having difficulties with uploading files to a CentOS-server with vsftpd.

I have the exact same configuration on a Fedora10 and there I have no problems...

Fedora 10 :

[root@asterisk etc]# ls -l | grep ast
drwxr-xr-x 4 asterisk asterisk 4096 2010-09-15 12:35 asterisk

CentOS :

[root@asterisk16 etc]# ls -l | grep ast
drwxr-xr-x 2 asterisk asterisk 4096 Sep 16 11:27 asterisk

vsftpd.conf on both servers :
Code:
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=NO
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
chroot_local_user=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
user "asterisk" :

Fedora 10 :
[root@asterisk /]# cat /etc/passwd | grep aster
asterisk:x:500:500:asterisk:/etc/asterisk:/bin/bash

CentOS :
[root@asterisk16 etc]# cat /etc/passwd | grep aster
asterisk:x:500:500::/etc/asterisk/:/bin/bash


Feedback from ftp-program :

Quote:
CWD /
250 Directory successfully changed.
CWD /
250 Directory successfully changed.
PORT 192,168,1,101,140,105
200 PORT command successful. Consider using PASV.
STOR asterisk.conf.new
553 Could not create file.
PORT 192,168,1,101,233,152
200 PORT command successful. Consider using PASV.
STOR asterisk.conf.new
553 Could not create file.
PORT 192,168,1,101,181,221
200 PORT command successful. Consider using PASV.
STOR asterisk.conf.new
553 Could not create file.
DELE asterisk.conf.new
550 Delete operation failed.
QUIT
221 Goodbye.

Last edited by jonaskellens; 09-16-2010 at 03:50 AM.
 
Old 09-16-2010, 04:07 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,890

Rep: Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608
Hi,

This looks like a SELinux problem.

Regards
 
Old 09-16-2010, 04:23 AM   #3
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 632

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by bathory View Post
Hi,

This looks like a SELinux problem.

Regards
I did not think of SElinux because @ install I put it in permissive. I've checked SElinux again and it was back in enforced.

Problem solved.
 
  


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
vsftpd 550 Access Denied on CentOS 5 iLinx Linux - Server 4 07-22-2010 10:51 AM
vsftpd in CentOS RedLay Linux - Server 2 03-18-2010 09:01 AM
CentOS 4 - Setting users for vsftpd vikram8jp Linux - Newbie 2 10-16-2008 03:15 AM
CentOS 5 + vsftpd + upload = error diezzler Linux - Networking 3 01-18-2008 11:59 AM
Centos 5 vsftpd /var/log/secure question johnvoisey Linux - Security 3 09-06-2007 07:45 AM

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

All times are GMT -5. The time now is 05:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration