Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Mar 2003 16:00:38 -0500
From:      Moti Levy <moti@flncs.com>
To:        "Defryn, Guy" <G.P.Defryn@massey.ac.nz>
Cc:        questions@freebsd.org
Subject:   Re: ftp best practices
Message-ID:  <3E763776.70808@flncs.com>
In-Reply-To: <9EA1E9775D329F4CB45B259FCA43F79F48B1FF@its-xchg3.massey.ac.nz>
References:  <9EA1E9775D329F4CB45B259FCA43F79F48B1FF@its-xchg3.massey.ac.nz>

next in thread | previous in thread | raw e-mail | index | archive | help
Defryn, Guy wrote:
> 
> I am setting up a webserver and I would like some opinions on this.
> 
> I have created a partition for the sites and create a directory for each
> site. Then I create a user account and set the website folder as the
> home directory for that user. The user can now ftp in his directory and
> upload files.
> 
> 
> One thing I would like to prevent is the visibility of the config files
> in the directory. I tried setting the shell to nonexistent but ftp does
> not seem to allow that.
> 
> 
> Cheers
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 
> 

I use proftpd in daemon mode .
with these :
Umask                   002
<Global>
         AllowOverwrite  yes
         <Limit ALL SITE_CHMOD>
                 AllowAll
         </Limit>
</Global>
#limit users to their home dir
DefaultRoot             ~

UseReverseDNS           off
MaxLoginAttempts        3
RequireValidShell       no
LsDefaultOptions        "-a"
TimeoutNoTransfer       900
IdentLookups            off
AllowRetrieveRestart    on
AllowStoreRestart       on
#hide files with no access to user
HideNoAccess		on


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E763776.70808>