netftpserver-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Net::FTPServer] Simple anonymous access


From: Richard Jones
Subject: Re: [Net::FTPServer] Simple anonymous access
Date: Wed, 10 Nov 2004 13:31:14 +0000
User-agent: Mutt/1.5.5.1+cvs20040105i

On Wed, Nov 10, 2004 at 01:53:34PM +0100, Kral Gergely wrote:
> --------
> /var/log/ftpd.errors:
> no ftp user in password file at
> /usr/lib/perl5/Net/FTPServer/RO/Server.pm line 107, <STDIN> line 2.

Well, you can add an ``ftp'' user to your system.  However doing so
can introduce security problems, if not done properly ...

It depends on exactly what you want to do (anonymous only?
read/write?  give ordinary users accounts?), you could try the
``password file'' approach.

Firstly, create a subdirectory somewhere which will be
where the FTP server can read _and_ write.  For instance, if
you had a user ``rich'', then you might create:

  /home/rich/guest-uploads/

This directory should be owned by ``rich'' too.

Now edit /etc/ftpd.conf and add this configuration directive:

  allow anonymous: false
  password file: /etc/ftpd.passwd

Now edit /etc/ftpd.passwd, and add one line to it:

  guest:ab01FAX.bQRSU:rich:/home/rich/guest-uploads

(as an example).  This would allow user ``guest'', password ``123456''
to access the guest-uploads directory, for read _and_ write.

If you want some other sort of configuration, you'll need to let us
know a bit more about what you do and don't want users to be able to
do.

Rich.

-- 
Richard Jones.  http://www.annexia.org/  http://www.j-london.com/
>>>   http://www.team-notepad.com/ - collaboration tools for teams   <<<
Merjis Ltd. http://www.merjis.com/ - improving website return on investment
Write Apache modules in OCaml - http://www.merjis.com/developers/mod_caml

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]