Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Feb 2016 01:20:19 +0100
From:      Polytropon <>
To:        Sergei G <>
Cc:        FreeBSD Questions <>
Subject:   Re: FTPD and umask
Message-ID:  <>
In-Reply-To: <>
References:  <>

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.

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

Want to link to this message? Use this URL: <>