[dundee] Why is Everythin on Linux Such a Ball Ache?

Andrew Clayton andrew at digital-domain.net
Thu Aug 5 11:03:14 UTC 2010


On Thu, 5 Aug 2010 11:03:20 +0100, Gary Short wrote:

> Okay guys, I've followed all the links and advice and it still
> doesn't work. Here's what I've got:
> 
> In the config file are the following settings:
> ftp_username=ftp
> anon_other_write_enable=YES
> anon_world_readable_only=NO

I don't have the above line..

> anon_upload_enable=YES
> anon_mkdir_write_enable=YES
> anon_root=/srv/ftp

I do have an

anonymous_enable=YES

near the top of the config.

> The daemon has started properly.
> 
> The tree structure is as follows
> /srv/ftp/pub
> 
> And permissions are...
> drwx------ 3 root root ftp
> drwxrwxrwx 2 ftp ftp pub

I think someone else mentioned this but pub doesn't want to be 777,
755 should suffice.
. 
> When I start Filezilla I can connect anonymously but I see "/" not
> "/pub" and when I try to create a directory I get:
> Status:	Connected
> Status:	Creating directory '/new'...
> Command:	CWD /
> Response:	550 Failed to change directory.
> Command:	MKD /new
> Response:	550 Create directory operation failed.
> 
> When I try to upload I get:
> Command:	CWD /
> Response:	550 Failed to change directory.
> Command:	SIZE /test.txt
> Response:	550 Could not get file size.
> Command:	TYPE A
> Response:	200 Switching to ASCII mode.
> Command:	PASV
> Response:	227 Entering Passive Mode (192,168,0,187,23,252).
> Command:	STOR /test.txt
> Response:	553 Could not create file.
> Error:	Critical file transfer error 
> 
> Any help would be appreciated

Trying to replicate the above.

$ ls -ld /srv
drwxr-xr-x 3 root root 4096 Aug  5 11:55 /srv
$ ls -ld /srv/ftp
drwxr-xr-x 3 root root 4096 Aug  5 11:55 /srv/ftp
$ ls -ld /srv/ftp/pub
drwxr-xr-x 2 ftp ftp 4096 Aug  5 11:52 /srv/ftp/pub

Then using lftp I can login as user anonymous with my email address as the password

$ lftp localhost
lftp localhost:~> user anonymous
Password: 
lftp anonymous at localhost:~> ls -l
drwxr-xr-x    2 14       50           4096 Aug 05 10:52 pub
lftp anonymous at localhost:/>  cd pub/
lftp anonymous at localhost:/pub> mkdir test
mkdir ok, `test' created

I've attached the config I've used for this.

Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vsftpd.conf
Type: application/octet-stream
Size: 4511 bytes
Desc: not available
URL: <http://mailman.lug.org.uk/pipermail/dundee/attachments/20100805/fb02fcd6/attachment-0001.obj>


More information about the dundee mailing list