LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-20-2006, 03:23 PM   #1
lothario
Member
 
Registered: Apr 2004
Posts: 340

Rep: Reputation: 30
ftp: 553 Could not create file.


I recently installed vsftpd.
I want to upload files to this system, making it my personal backup server.
The "/etc/vsftpd/vsftpd.conf" file contains:
Quote:
anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
anon_upload_enable=YES
anon_mkdir_write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES

# chown_uploads=YES
# chown_username=whoever

xferlog_file=/var/log/vsftpd.log
xferlog_std_format=YES

# idle_session_timeout=600
# data_connection_timeout=120
# nopriv_user=ftpsecure
# async_abor_enable=YES

ascii_upload_enable=YES
ascii_download_enable=YES

# ftpd_banner=Welcome to blah FTP service.
# deny_email_enable=YES
# banned_email_file=/etc/vsftpd.banned_emails
# chroot_list_enable=YES
# chroot_list_file=/etc/vsftpd.chroot_list
# ls_recurse_enable=YES

pam_service_name=vsftpd
userlist_enable=YES
listen=YES
tcp_wrappers=YES
pasv_min_port=6000
pasv_max_port=6001
anon_root=/data/vsftpd/pub/anon
But I keep getting this "553 Could not create file." message every time I try to upload a file:
Quote:
# ftp -v 192.168.2.105
Connected to 192.168.2.105.
220 (vsFTPd 2.0.1)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (192.168.2.105:root): anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ascii
200 Switching to ASCII mode.
ftp> put BIG_TEST_FILE
local: BIG_TEST_FILE remote: BIG_TEST_FILE
227 Entering Passive Mode (192,168,2,105,23,113)
553 Could not create file.
ftp> bye
I have opened ports on the firewall of this 192.168.2.105 system.
What am I missing?
 
Old 10-21-2006, 02:07 AM   #2
sn68
Member
 
Registered: Oct 2005
Distribution: FC5
Posts: 338

Rep: Reputation: 30
May be the "anonymous" user does not have write permission on the server, so try logging in with a username with write permissions
 
Old 10-21-2006, 02:42 AM   #3
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Quote:
...try logging in with a username with write permissions
...or, conversely, make sure the ftp directory has world write priviledges.
 
Old 10-21-2006, 04:33 AM   #4
lothario
Member
 
Registered: Apr 2004
Posts: 340

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by sn68
May be the "anonymous" user does not have write permission on the server, so try logging in with a username with write permissions
Ok, so I logged in as the user "bob".
"bob" is an existing user with shell access and home directory.
This worked fine.

But I want to use the "anonymous" id.
I have set aside a few gigs of disk space for doing backups.
"bob" does not deserve more that his 100 meg quota.

If I change the permissions of the "/data/vsftpd/pub/anon" directory with chmod 756 then I get
500 OOPS: vsftpd: refusing to run with writable anonymous root

What can I do?
 
Old 10-21-2006, 06:56 AM   #5
sn68
Member
 
Registered: Oct 2005
Distribution: FC5
Posts: 338

Rep: Reputation: 30
Actually giving anonymous user write access and large amount of disk space is not a good idea(my opinion!). Why not create a user like "backup" and use it for backing up the way you want with whatever space you have in mind?
 
  


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
553 errors nayabingi Linux - Newbie 1 07-07-2005 12:05 PM
Create FTP account Swakoo Linux - Newbie 1 06-13-2005 06:16 AM
how to create an ftp server in FC3 msalimane Fedora 3 01-18-2005 07:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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