LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-26-2007, 10:33 AM   #1
Fabian10
LQ Newbie
 
Registered: Nov 2007
Location: Calgary, AB, Canada
Posts: 7

Rep: Reputation: 0
Question '553 Could not create file' in vsftpd FTP Server on CentOS 5


Hello all!

I'm fairly new in the Linux community and I'd like to apologize in advance in case I ask some pretty basic questions.

I'm setting up an FTP Server on a CentOS 5 box, using vsftpd.
I can have users log in and download files, but whenever I want to upload a file I get '553 Could not create file'.

Here is my vsftpd configuration file (without comments):
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=NO
xferlog_enable=YES
connect_from_port_20=YES
xferlog_file=/var/log/vsftpd.log
xferlog_std_format=YES
ftpd_banner=Welcome to KDTech's FTP Site.
listen=YES
pam_service_name=vsftpd
userlist_enable=NO
tcp_wrappers=YES
dirlist_enable=YES
download_enable=YES
write_enable=YES

Am I missing something?

Also, the vsftpd.log records the following information when I try to upload a file (NewText_SP.doc):

Sun Nov 25 05:19:32 2007 1 192.168.0.245 0 /home/ftp-docs/NewText_SP.doc b _ i r user1 ftp 0 * i

I have disabled SELinux too.

Any help will be much appreciated.
 
Old 11-26-2007, 10:36 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Probably group ownership with write access to the directory they're trying to upload. Check that and retry. Are the users logging in as anonymous?
 
Old 11-26-2007, 11:13 AM   #3
Fabian10
LQ Newbie
 
Registered: Nov 2007
Location: Calgary, AB, Canada
Posts: 7

Original Poster
Rep: Reputation: 0
Group ownership?

Hello trickykid, and thank you for your quick reply.
I think you are correct about the problem...
I've done the following regarding ownership, you can tell me if this is correct:

Created a user group and shared directory.
groupadd ftp-users
mkdir /home/ftp-docs

Made the directory accessible to the ftp-users group.
chmod 750 /home/ftp-docs
chown root:ftp-users /home/ftp-docs

Added users, and make their default directory /home/ftp-docs
useradd -g ftp-users -d /home/ftp-docs user1

Created user password
passwd user1

***********************************
Here is my mistake (I think)!

Changed the permissions of the files in the /home/ftp-docs directory for read only access by the group
[root@bigboy tmp]# chown root:ftp-users /home/ftp-docs/*
[root@bigboy tmp]# chmod 740 /home/ftp-docs/*
***********************************

What should I use here?

Last edited by Fabian10; 11-26-2007 at 06:06 PM.
 
  


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 Error 553 - Could not create file KimInWis Fedora 14 10-09-2013 11:43 AM
vsftpd & "553 could not create file" steffentchr Linux - Server 8 06-28-2012 01:52 PM
gftp returns "553 Could not create file." bezdomny Linux - Software 4 08-28-2007 09:15 AM
ftp: 553 Could not create file. lothario Linux - Software 4 10-21-2006 06:56 AM
create ftp user for vsftpd server without home directory cccc Linux - Networking 2 07-30-2005 06:32 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration