LinuxQuestions.org
Register a domain and help support LQ
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 10-10-2011, 10:58 AM   #1
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 632

Rep: Reputation: 33
vsFTPd : download OK, upload not OK


Hello,

I notice that I can download files via FTP, but I can not upload files.

Firewall (iptables) is completely disabled.

Login with my user is no problem.

The only thing I see in the vsftpd logfiles is :

Code:
Mon Oct 10 14:46:40 2011 1 MY.IP.ADD.RESS 0 /file.conf.new b _ i r myuser ftp 0 * i
Mon Oct 10 14:46:40 2011 1 MY.IP.ADD.RESS 0 /file.conf.new b _ i r myuser ftp 0 * i
Mon Oct 10 14:46:40 2011 1 MY.IP.ADD.RESS 0 /files.conf.new b _ i r myuser ftp 0 * i
This are the rights on the directory from which I can download but to which I can not upload :

Code:
drwxr-xr-x   2 myuser myuser   4096 Oct 10 15:47 mydirectory
This from commandline :
Code:
ftp> put file.conf
local: file.conf remote: file.conf
227 Entering Passive Mode (193,110,253,55,211,66)
553 Could not create file.

What is wrong ?

Last edited by jonaskellens; 10-10-2011 at 11:18 AM.
 
Old 10-10-2011, 12:43 PM   #2
teebones
Member
 
Registered: Aug 2005
Location: /home/teebones
Distribution: sometimes this, sometimes that..
Posts: 502

Rep: Reputation: 56
no write rights in the directory (so it appears)
check that first
 
Old 10-10-2011, 02:23 PM   #3
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 632

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by teebones View Post
no write rights in the directory (so it appears)
check that first
User has write rights... Where do you see no rights ?

drwxr-xr-x 2 myuser myuser 4096 Oct 10 15:47 mydirectory
 
Old 10-10-2011, 02:26 PM   #4
teebones
Member
 
Registered: Aug 2005
Location: /home/teebones
Distribution: sometimes this, sometimes that..
Posts: 502

Rep: Reputation: 56
r-xr-x it says.. you need to think from the vsftpd perspective, not the user owning the directory.
vsftpd has not writing rights.
 
Old 10-10-2011, 02:35 PM   #5
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 632

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by teebones View Post
r-xr-x it says.. you need to think from the vsftpd perspective, not the user owning the directory.
vsftpd has not writing rights.
Same settings on another server give no problem...

I log in with a user, not with a service. I find your reason very odd.

Nevertheless I have given all rights for user, group and other but still it does not work (as could be expected).
 
Old 10-10-2011, 03:10 PM   #6
teebones
Member
 
Registered: Aug 2005
Location: /home/teebones
Distribution: sometimes this, sometimes that..
Posts: 502

Rep: Reputation: 56
It's not so odd as you might think... since ftp is a service, it was the first thing popping in my mind. (and some service require write access themselves, e.g. apache is one )

but, ok... here is another thought...

Do you have write_enable in your vsftpd configuration file?

Last edited by teebones; 10-10-2011 at 03:14 PM.
 
Old 10-11-2011, 08:27 AM   #7
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 632

Original Poster
Rep: Reputation: 33
Problem was with SElinux.

Thanks for your input.
 
Old 10-11-2011, 11:31 AM   #8
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,027

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
please mark the thread as solved if it is fixed...

my suggestion would be upgrading to scp/sshfs using keys if possible.
 
  


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 550 I can upload, but Cannot download, any ideas? MadAtUbuntu Linux - Newbie 6 12-16-2014 06:54 PM
Increase Download and Upload speed of my Vsftpd server bilal_mld Linux - Server 3 07-05-2010 12:54 PM
Vsftpd Virtual users upload/download graugeist Linux - Newbie 4 08-25-2008 02:29 AM
VSFTPD unable to upload/download as anonymos linuxmandrake Linux - Software 0 02-25-2006 06:51 AM
VSFTPD - can download but cant upload. Dirt Linux - Software 1 09-06-2003 09:42 PM


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