LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-04-2008, 05:38 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Question vsFTPd Help (Unable to Upload)


I just installed vsftpd on Debian and I am attempting to upload a file to my ftp server using the anonymous option. I have the server obviously running and when I try to upload, they appear to fail. I am using cli as a ftp client so I might be doing it wrong:

Code:
carlos@bull:~/Desktop$ ls -l
total 49232
-rw-r--r-- 1 carlos it 50359534 2008-11-04 18:21 kernel.tar.bz2
carlos@bull:~/Desktop$ ftp
ftp> open
(to) unixslut.com
Connected to unixslut.com.
220 Welcome to unixslut.com!!!
Name (unixslut.com:carlos): carlos
530 This FTP server is anonymous only.
Login failed.
I then logged in as 'anonymous':

Code:
ftp> open
(to) unixslut.com
Connected to unixslut.com.
220 Welcome to unixslut.com!!!
Name (unixslut.com:carlos): anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> put
(local-file) /home/carlos/Desktop/kernel.tar.bz2
(remote-file) /home/ftp/kernel.tar.bz2
local: /home/carlos/Desktop/kernel.tar.bz2 remote: /home/ftp/kernel.tar.bz2
200 PORT command successful. Consider using PASV.
553 Could not create file.
I checked log files [/var/log/vsftpd.log] and it does not give me much detailed info besides the fact the upload failed...duh!

Now I am guessing the ftp root directory is /home/ftp on the vsftpd server and I am wondering if there is a permission issue on that directory that is causing the upload failure:

Code:
hammer:/home# ls -l
total 8
drwx------ 4 carlos users   4096 2008-11-04 18:18 carlos
drwxr-xr-x 2 root   nogroup 4096 2008-11-04 18:19 ftp
Anyone know what is keeping me from getting a successful upload to my server?
 
Old 11-06-2008, 10:42 AM   #2
Ricio
Member
 
Registered: Sep 2003
Location: Colombia
Distribution: Debian
Posts: 220

Rep: Reputation: 30
actually is not permissions on vsftpd...

anonymous accounts simply cannot upload or modify files in any way, this if configured by default on vsftpd.conf

To enable uploads of anonymous user youll have to uncomment the anon_upload_enable directive --> note that this is a security breach waiting to happen!

and the dir of vsftpd by default is /var/ftp/
 
  


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 Upload Permission Supreme Linux - Software 3 03-14-2008 02:11 PM
vsftpd - unable to resume upload DBabo Linux - Software 0 09-11-2007 02:20 PM
VSFTPD unable to upload/download as anonymos linuxmandrake Linux - Software 0 02-25-2006 05:51 AM
vsftpd - virtual users unable to upload frodema Linux - Networking 3 12-06-2003 07:32 AM
unable to upload files with RH9 & Vsftpd ToBe Linux - Networking 1 10-27-2003 04:41 PM

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

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