LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   vsFTPd : download OK, upload not OK (https://www.linuxquestions.org/questions/linux-newbie-8/vsftpd-download-ok-upload-not-ok-907391/)

jonaskellens 10-10-2011 09:58 AM

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 ?

teebones 10-10-2011 11:43 AM

no write rights in the directory (so it appears)
check that first ;)

jonaskellens 10-10-2011 01:23 PM

Quote:

Originally Posted by teebones (Post 4494679)
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

teebones 10-10-2011 01:26 PM

r-xr-x it says.. you need to think from the vsftpd perspective, not the user owning the directory.
vsftpd has not writing rights.

jonaskellens 10-10-2011 01:35 PM

Quote:

Originally Posted by teebones (Post 4494800)
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).

teebones 10-10-2011 02:10 PM

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?

jonaskellens 10-11-2011 07:27 AM

Problem was with SElinux.

Thanks for your input.

schneidz 10-11-2011 10:31 AM

please mark the thread as solved if it is fixed...

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


All times are GMT -5. The time now is 02:09 AM.