From owner-freebsd-questions@freebsd.org Thu Feb 18 00:20:22 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8D2A6AAB215 for ; Thu, 18 Feb 2016 00:20:22 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 79ED7BA8 for ; Thu, 18 Feb 2016 00:20:22 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: by mailman.ysv.freebsd.org (Postfix) id 773AFAAB214; Thu, 18 Feb 2016 00:20:22 +0000 (UTC) Delivered-To: questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 76D02AAB213 for ; Thu, 18 Feb 2016 00:20:22 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 402F4BA7 for ; Thu, 18 Feb 2016 00:20:22 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-39-227.dynamic.qsc.de [92.195.39.227]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id 48F1F27634; Thu, 18 Feb 2016 01:20:20 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id u1I0KJAn002986; Thu, 18 Feb 2016 01:20:19 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Thu, 18 Feb 2016 01:20:19 +0100 From: Polytropon To: Sergei G Cc: FreeBSD Questions Subject: Re: FTPD and umask Message-Id: <20160218012019.12f4cd61.freebsd@edvax.de> In-Reply-To: References: Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2016 00:20:22 -0000 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, ...