From owner-freebsd-stable@freebsd.org Sun May 20 17:08:34 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 BB9ADEE6F7B; Sun, 20 May 2018 17:08:34 +0000 (UTC) (envelope-from sbruno@freebsd.org) Received: from mail.ignoranthack.me (ignoranthack.me [199.102.79.106]) (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 397D786741; Sun, 20 May 2018 17:08:33 +0000 (UTC) (envelope-from sbruno@freebsd.org) Received: from [192.168.0.6] (67-0-228-75.albq.qwest.net [67.0.228.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sbruno@ignoranthack.me) by mail.ignoranthack.me (Postfix) with ESMTPSA id EF1BC192888; Sun, 20 May 2018 09:13:55 +0000 (UTC) Subject: Re: ftpd in base To: tech-lists Cc: freebsd-stable@freebsd.org References: From: Sean Bruno Openpgp: preference=signencrypt Autocrypt: addr=sbruno@freebsd.org; prefer-encrypt=mutual; keydata= xsBNBFk+0UEBCADaf4bgxxKvMOhRV5NPoGWRCCGm49d6+1VFNlQ77WsY/+Zvf95TPULdRlnG w648KfxWt7+O3kdKhdRwnqlXWC7zA2Qt0dRE1yIqOGJ4jp4INvp/bcxWzgr0aoKOjrlnfxRV bh+s0rzdZt6TsNL3cVYxkC8oezjaUkHdW4mFJU249U1QJogkF8g0FeKNfEcjEkwJNX6lQJH+ EzCWT0NCk6J+Xyo+zOOljxPp1OUfdvZi3ulkU/qTZstGVWxFVsP8xQklV/y3AFcbIYx6iGJ4 5L7WuB0IWhO7Z4yHENr8wFaNYwpod9i4egX2BugbrM8pOfhN2/qqdeG1L5LMtXw3yyAhABEB AAHNN1NlYW4gQnJ1bm8gKEZ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T8HaBp8h03LBfk510IaI8oL/Jg7vpM3PDtJMW tUi2H+yNFmL3NfM2oBToWKLFsoP54f/eeeImrNnrlLjLHPzqS+/9apgYqX2Jwiv3tHBc4FTO GuY8VvF7BpixJs8Pc2RUuCfSyodrp1YG1kRGlXAH0cqwwr0Zmk4+7dZvtVQMCl6kS6q1+84q JwtItxS2eXSEA4NO0sQ3BXUywANh Message-ID: <1c729790-ad8e-0474-c862-2321869b8b7b@freebsd.org> Date: Sun, 20 May 2018 11:08:21 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mMK0I1vA3SSUg9nn65Zln28ksEl2DcHxJ" 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 17:08:35 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --mMK0I1vA3SSUg9nn65Zln28ksEl2DcHxJ Content-Type: multipart/mixed; boundary="9zX6iLqscix2XNGpCyPpTJCp2qhWBKIT6"; protected-headers="v1" From: Sean Bruno To: tech-lists Cc: freebsd-stable@freebsd.org Message-ID: <1c729790-ad8e-0474-c862-2321869b8b7b@freebsd.org> Subject: Re: ftpd in base References: In-Reply-To: --9zX6iLqscix2XNGpCyPpTJCp2qhWBKIT6 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 05/20/18 05:49, tech-lists wrote: > Hi, >=20 > context: 11.2-BETA2 #0 r333924/amd64 >=20 > I'm trying to get chrooted ftpd (in base) to write files uploaded to th= e > user dir as mode 666 (umask 111). I have a line in inetd.conf that look= s > like this: >=20 > ftp stream tcp nowait=C2=A0 root /usr/libexec/ftpd ftpd -l -u 111 >=20 > 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) >=20 > Why is ftpd ignoring -u ? How can I fix? >=20 > thanks, Is it possible that you have 644 in login.conf? The man page for ftpd seems to indicate that -u XXX will be overriden by login.conf settings. sean --9zX6iLqscix2XNGpCyPpTJCp2qhWBKIT6-- --mMK0I1vA3SSUg9nn65Zln28ksEl2DcHxJ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQGTBAEBCgB9FiEE6MTp+IA1BOHj9Lo0veT1/om1/LYFAlsBq4VfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEU4 QzRFOUY4ODAzNTA0RTFFM0Y0QkEzNEJERTRGNUZFODlCNUZDQjYACgkQveT1/om1 /LaSQggAq/TYnIJ6PdseiyTrB03/CQPR7bOn9ygzF64MDG6LO9H8f8OCc1Z8/0m1 jySq0fPfcbrpxpOrCkujdRY0Qiw98piKklheUBbYNSm99qFFI/xlR59evLURJoQa OMSHgGoFql/AyqIyW+5m6u5lD3FsFvfqnIRsRDwsUcXBUnCB8reRuU0apVZheQvE xO3XRtkcqt7ZyJDtobIANwVL5eLtg2UYr8GIJ2PTFNfg4zH3iwN+coPQhAr0xQvo aDlHGDLzz+Wf3Gm8ZcBYzj93ImbJquhiRmXECrfybXk5JgzaOATm7YgazaXsmxfQ 8As5jn94+Lz0y/7jGuVrje5Dabt6Hg== =GfVM -----END PGP SIGNATURE----- --mMK0I1vA3SSUg9nn65Zln28ksEl2DcHxJ--