Re: FTP server

From: Matthew Seaman (m.seaman_at_infracaninophile.co.uk)
Date: 08/31/04

  • Next message: Curtis Vaughan: "5.x - which to install? (Was Re: LDAP, pam, nss)"
    Date: Tue, 31 Aug 2004 17:44:18 +0100
    To: lycanthrope <lycanthrope@post.htnet.hr>
    
    
    

    On Tue, Aug 31, 2004 at 06:03:02PM +0200, lycanthrope wrote:

    > I'm trying to set up FTP server. I enable the line in inetd, created a user ftp in group ftp. now, the ftp user and anonymous can log into FTP, and download. BUT, anonymous user can ALSO UPLOAD. how to restrict anonymous account to downloading only?

    The simplest thing to do is to make the anonymous FTP area readable by
    the ftp UID, but not writable. Assuming your ftp user also has ftp as
    it's primary group:

        # chown -R root:ftp ~ftp/pub
        # chmod -R o+rwX,g-w+rX,o-rwx ~ftp/pub

    should do the trick, assuming you're going by the comments towards the
    end of ftpd(8) man page on how to lay out the anonymous FTP area.

    If you need to create a group 'ftp' use:

        # pw group add -n ftp -g 21 -M root

    and to make that the primary group of the ftp user:

        # pw user mod -n ftp -g ftp

            Cheers,

            Matthew

    -- 
    Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                          Savill Way
    PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
    Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
    
    



  • Next message: Curtis Vaughan: "5.x - which to install? (Was Re: LDAP, pam, nss)"

    Relevant Pages

    • RE: ftp authentication problem
      ... You did not move the group file over. ... Check the group the FTP user is. ... Check the permission on the home directories. ...
      (freebsd-questions)
    • Re: FTP on IIS 6
      ... > Isolation was the killer here. ... Once I removed that FTP works fine. ... > ti set up an ftp user who is isolated is half baked and not real clear. ... >> Bernard Cheah ...
      (microsoft.public.inetserver.iis.ftp)
    • Re: first time setup for multiple website ftp folders.
      ... create your ftp user isolation, set the proper ntfs and folder structure ... How To Set Up Isolated Ftp Site ... create virtual directory of your website to the ftp user folder. ...
      (microsoft.public.inetserver.iis.ftp)
    • Re: [PHP] php unlink a file - is it possible?
      ... Unless you change the permissions of the file, the run the FTP as nobody, run ... apache as the ftp user, run apache as root (can't believe I even said that... ... "Who controls the past controls the future. ...
      (php.general)
    • Re: Problem connecting to WinXP FTP server
      ... setup a limited user account named: ftp user, ... The folder I ... I suspect this is a port or passive mode issue regarding the listing of the home directory. ...
      (microsoft.public.windowsxp.general)