Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

553: Permission denied on server (Overwrite)

Status
Not open for further replies.

cadbilbao

Programmer
Apr 9, 2001
233
ES
Hi!

I've got installed wu-ftpd on my RedHat 7.1.

I get "553: Permission denied on server (Overwrite)" error when trying user 'ftp' to upload a file to /var/ftp/foo

/etc/passwd
ftp:x:14:50:FTP User:/var/ftp:

/etc/ftpaccess:
upload /var/pub/foo * yes
overwrite /var/pub/foo * yes
chmod /var/pub/foo * yes
delete /var/pub/foo * yes
rename /var/pub/foo * yes

/var/ftp:
d--x--x--x 2 root root 1024 jul 10 12:36 bin
d--x--x--x 2 root root 1024 jul 10 12:34 etc
drwxr-xr-x 2 root root 1024 jul 10 12:34 lib
drwxr-sr-x 2 root ftp 1024 mon 21 16:37 pub
drwxr-xr-x 2 ftp root 1024 jul 13 13:23 foo

/var/ftp/foo:
-rw-r--r-- 1 ftp ftp 0 jul 13 13:15 myfile.txt
-rw-r--r-- 1 ftp ftp 306 jul 13 12:57 data2.html

What am I doing wrong?



 
Hi,

Looks like you have root as the owner of '/var/ftp/foo'. Group permissions are set at r+x only.

You could 'chmod 775 /var/ftp/foo' which would set rwx permissions for the group or 'chown -R ftp.ftp /var/ftp/foo' which would set both owner and group to 'ftp' in /var/ftp/foo and, recursively below that subdirectory.

Regards
 
I don't thin so. I've change my configuration. Current is:

/etc/passwd
ftp:x:14:50:FTP User:/var/ftp:

/etc/ftpaccess:
upload /var/pub/foo * yes
overwrite /var/pub/foo * yes
chmod /var/pub/foo * yes
delete /var/pub/foo * yes
rename /var/pub/foo * yes

/var/ftp:
d--x--x--x 2 root root 1024 jul 10 12:36 bin
d--x--x--x 2 root root 1024 jul 10 12:34 etc
drwxr-xr-x 2 root root 1024 jul 10 12:34 lib
drwxr-sr-x 2 root ftp 1024 mon 21 16:37 pub
drwxrwxrwx 2 ftp ftp 1024 jul 13 13:23 foo

/var/ftp/foo:
-rwxrwxrwx 1 ftp ftp 0 jul 13 13:15 myfile.txt
-rwxrwxrwx 1 ftp ftp 306 jul 13 12:57 data2.html

I can not still upload.
 
Hmmm, I must be the /etc/ftpaccess file or a related file then. All I have in mine for the directives you quote is the following :





chmod no guest,anonymous

delete no anonymous

overwrite no anonymous

rename no anonymous



I don't have any 'upload' directives - I'm not using 'chroot' for anyone and I just rely on the native Linux security.


Using the above, I can quite happily ftp both ways including overwriting existing files. It just seems to be the same as the ordinary file permissions....


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top