Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 May 2018 11:08:21 -0600
From:      Sean Bruno <sbruno@freebsd.org>
To:        tech-lists <tech-lists@zyxst.net>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: ftpd in base
Message-ID:  <1c729790-ad8e-0474-c862-2321869b8b7b@freebsd.org>
In-Reply-To: <bc63650d-ada4-59ac-0f30-6fed5fc69b98@zyxst.net>
References:  <bc63650d-ada4-59ac-0f30-6fed5fc69b98@zyxst.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--mMK0I1vA3SSUg9nn65Zln28ksEl2DcHxJ
Content-Type: multipart/mixed; boundary="9zX6iLqscix2XNGpCyPpTJCp2qhWBKIT6";
 protected-headers="v1"
From: Sean Bruno <sbruno@freebsd.org>
To: tech-lists <tech-lists@zyxst.net>
Cc: freebsd-stable@freebsd.org
Message-ID: <1c729790-ad8e-0474-c862-2321869b8b7b@freebsd.org>
Subject: Re: ftpd in base
References: <bc63650d-ada4-59ac-0f30-6fed5fc69b98@zyxst.net>
In-Reply-To: <bc63650d-ada4-59ac-0f30-6fed5fc69b98@zyxst.net>

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1c729790-ad8e-0474-c862-2321869b8b7b>