From owner-freebsd-stable@freebsd.org Sun May 20 11:49:10 2018 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 131F9EDB840; Sun, 20 May 2018 11:49:10 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B48637C0D4; Sun, 20 May 2018 11:49:09 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id EE31D22297; Sun, 20 May 2018 07:49:02 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sun, 20 May 2018 07:49:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zyxst.net; h=cc :content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=vgX9vZJKilQzT0XkGJHC4Knq/wgmFDXY6lGhmQU/BX8=; b=a7p+PtVA 9ywj943vk28V/5jGNb3caeX4cTMkMxSvJbmgEDx3X1Q+zQoZEmn8K27uXDK16Xyo uzOetcIdRQw4k5BXpuzgKSovOCTA8MhTar2yry2ce/5iuW1CPv7Z8v9DAZJldl4Q oV+g9VC3YQvRIWxem+jeDkuMsWz65BuEviVHRebHaDQfROjsEg+pOpP6VBYIDwhP c41EREwEyfPv9Lwfo65a927sY59BrCnpnx887oKrEV7QLpgh3lryOfBY8ve+0+XI mK90lwQj8nX2sNRHCaybn2MUvF9sCeJw17W0h0m3C/LeygAYJr+SlABTQKhCVOvm ZKziiJQ+k5qZmw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=vgX9vZJKilQzT0XkGJHC4Knq/wgmF DXY6lGhmQU/BX8=; b=IEWFeo3VWdQtK4LOaZp7smcsLfa0GPzy9iu6VZ/lXaudp fXXdAQnC9EY3DXvoIlhjrs4Zx1RRkz58DJKGBn4z1D6wou7ZUtddWP+xURMOO3H+ WUwgzqsNHYBNg0XlAp5vW3DLDjymkpEUya6cvHpNOy/PzlOKRR49VEZgBc3SH55r nNKNwLs0Fm67dEOUiArp6oeSYsq7ETAPzaNHGeAxtL00pacyxCHNfk/ZUrf48h0/ TM0fE/Mz5HWnMDRU2od+IRaqcwYEeuVpc/h7VrXFTM6B0k7R0/jE4d2Vfd/cdZPX vXAmeqdYtpqwai76QYCUOnqfyLOjXUPp1paEDOcCw== X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Sender: Received: from desktop.local (parsley.growveg.org [82.70.91.97]) by mail.messagingengine.com (Postfix) with ESMTPA id 27429E49AD; Sun, 20 May 2018 07:49:02 -0400 (EDT) To: freebsd-questions@freebsd.org From: tech-lists Subject: ftpd in base Organization: none Cc: freebsd-stable@freebsd.org Message-ID: Date: Sun, 20 May 2018 12:49:00 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 May 2018 11:49:10 -0000 Hi, context: 11.2-BETA2 #0 r333924/amd64 I'm trying to get chrooted ftpd (in base) to write files uploaded to the user dir as mode 666 (umask 111). I have a line in inetd.conf that looks like this: ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l -u 111 The user logs in OK and uploads OK but the perms are always 644. There is no login.conf overriding this. The users shell is /usr/sbin/nologin as these are ftp-only accounts. This exact config works fine on linux (specifically ubuntu) Why is ftpd ignoring -u ? How can I fix? thanks, -- J