knoxcu / snake-os

Automatically exported from code.google.com/p/snake-os
0 stars 0 forks source link

Anonymous FTP write denied #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Anonymous FTP write denied

Original issue reported on code.google.com by dgazi...@gmail.com on 18 Mar 2010 at 2:57

GoogleCodeExporter commented 9 years ago
Login pass ftp write denied too.

"CWD /sda1
250 Directory successfully changed.
TYPE I
200 Switching to Binary mode.
PASV
227 Entering Passive Mode (192,168,0,10,247,185).
STOR filename.avi
553 Could not create file." 

Original comment by moffstu...@gmail.com on 19 Mar 2010 at 6:19

GoogleCodeExporter commented 9 years ago

Original comment by dgazi...@gmail.com on 19 Apr 2010 at 1:49

GoogleCodeExporter commented 9 years ago
Trying to reproduce again, found that it is caused by permissions issues.
From VSFTPD documentation: Anonymous FTP root have to be read-only for 
anonymous user
(ftp).

This implies that only subfolders of ftp root can have write permission, and it 
will
only work with ext2/ext3 filesystems, because they properly obey file/folder 
permissions.

Solution:
Log onto the NAS via telnet/ssh , change to FTP root folder and give permission 
to
ftp user or everyone on the desired subfolder (that must reside on and ext2/ext3
filesystem).

Example:

# cd /usb
# ls -l
drwxrwxrwx   16 root     root        12288 Apr 18 23:03 sda1
# cd sda1
# ls -l
drwxr-xr-x    2 root     root           40 Apr 18 23:27 readonly
drwxr-xr-x    2 root     root           40 Apr 18 23:27 write
# chmod 777 write
# ls -l
drwxr-xr-x    2 root     root           40 Apr 18 23:27 readonly
drwxrwxrwx    2 root     root           40 Apr 18 23:27 write

Will wait for confirmation before closing the issue.

Original comment by dgazi...@gmail.com on 19 Apr 2010 at 2:30

GoogleCodeExporter commented 9 years ago

Original comment by dgazi...@gmail.com on 15 May 2010 at 3:41

GoogleCodeExporter commented 9 years ago
How to login via Telnet?!

Original comment by nedjeljk...@gmail.com on 2 May 2012 at 12:42