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 09-16-2010, 02:46 AM   #1
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 690

Rep: Reputation: 34
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 02:50 AM.
 
Old 09-16-2010, 03:07 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

This looks like a SELinux problem.

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

Original Poster
Rep: Reputation: 34
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



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

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

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