Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Feb 2016 01:20:19 +0100
From:      Polytropon <freebsd@edvax.de>
To:        Sergei G <sergeig.public@gmail.com>
Cc:        FreeBSD Questions <questions@freebsd.org>
Subject:   Re: FTPD and umask
Message-ID:  <20160218012019.12f4cd61.freebsd@edvax.de>
In-Reply-To: <CAFLLzCPfOdnYtaYKPjkJpWq_bv=Mz94i=_KJyd75bAzg78YVSw@mail.gmail.com>
References:  <CAFLLzCPfOdnYtaYKPjkJpWq_bv=Mz94i=_KJyd75bAzg78YVSw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 17 Feb 2016 16:13:57 -0800, Sergei G wrote:
> I made these /etc/rc.conf changes:
> 
> ftpd_enable="YES"
> ftpd_flags="-u u=rw,g=rw,o=r"
> 
> But files uploaded to FTPD location still get created with:
> 
> rw-r--r--
> 
> file mask.  How do I force new file to be group writable?

By specifying the umask in the required format. From "man ftpd":

     -u      The default file creation mode mask is set to umask, which is
             expected to be an octal numeric value.  Refer to umask(2) for
             details.  This option may be overridden by login.conf(5).

Use ftpd_flags="-u 664" for the group write permission.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160218012019.12f4cd61.freebsd>