From owner-freebsd-hackers@freebsd.org Fri Oct 4 05:38:54 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2E8DAFBFBC for ; Fri, 4 Oct 2019 05:38:54 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (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 46kzFS4crrz40Pp for ; Fri, 4 Oct 2019 05:38:52 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cs.huji.ac.il; s=57791128; h=To:Date:Message-Id:Subject:Mime-Version:Content-Type:From; bh=6GuCS68b9ca0laEJdw5nIWsbaH4YzXmqaFCN5J4Xpxc=; b=dIIG/T5WVNWgTTXFnqbXVL67unToHaWuEJiGpIHoA9Qs8xalWlrNs4dRZ4rF+zMMt+FJigloBAT+1NeYwyQ6+PRiJ2pPT97vxqNDjhwna8l50C3cT8zs+C05hhyngcnwamreKgCieR/Xw6Wky1SG1SOlWl6u/RurPZxqJL5fJloD7+FaXj6rwlOUZmDDgNtmQGvLBwz0Koy2FKNg4rB573KNv5z9oUDjFVYoRldrxujFjc3nR36DvOQvQyklk8fU74++ktsgcPZwtKPkULIyCzzd+Dkxnv89aAQJLvmSrT+PK9uXILCqpaRtHn3Agi3j3eMOw6JpBe3KJy1P2GcxHw==; Received: from macmini.bk.cs.huji.ac.il ([132.65.179.19]) by kabab.cs.huji.ac.il with esmtp id 1iGGIj-000IF4-IX for freebsd-hackers@freebsd.org; Fri, 04 Oct 2019 08:38:49 +0300 From: Daniel Braniss Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3594.4.18\)) Subject: vsftpd: very strange bug? Message-Id: <0B6ED526-08BD-43EE-A11B-0C948F97A190@cs.huji.ac.il> Date: Fri, 4 Oct 2019 08:38:49 +0300 To: freebsd-hackers@freebsd.org X-Mailer: Apple Mail (2.3594.4.18) X-Rspamd-Queue-Id: 46kzFS4crrz40Pp X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cs.huji.ac.il header.s=57791128 header.b=dIIG/T5W; dmarc=none; spf=none (mx1.freebsd.org: domain of danny@cs.huji.ac.il has no SPF policy when checking 132.65.116.210) smtp.mailfrom=danny@cs.huji.ac.il X-Spamd-Result: default: False [-0.97 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.95)[-0.947,0]; R_DKIM_ALLOW(-0.20)[cs.huji.ac.il:s=57791128]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[huji.ac.il]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.96)[-0.957,0]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[cs.huji.ac.il:+]; RCVD_IN_DNSWL_NONE(0.00)[210.116.65.132.list.dnswl.org : 127.0.10.0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:378, ipnet:132.64.0.0/13, country:IL]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-0.27)[ipnet: 132.64.0.0/13(-0.77), asn: 378(-0.61), country: IL(0.05)]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Oct 2019 05:38:54 -0000 Hi, I=E2=80=99m trying to run vsftpd for anonymous use, and have this very = strange behaviour: on host A it works just fine, but on on any other host it does not. the binary is on a nfs server, the chdir is also to a directory on nfs, = all host run the same root image FreeBSD 11.3. truss from the working host: 55090: chdir("/") =3D 0 (0x0) 55090: chdir("/cs/ftp") =3D 0 (0x0) 55090: chroot(".") =3D 0 (0x0) 55090: setgid(0x6710) =3D 0 (0x0) 55090: setuid(0x2710) =3D 0 (0x0) 55090: setrlimit(RLIMIT_NPROC,{ cur=3D0,max=3D0 }) =3D 0 (0x0) 55090: access("/",W_OK) ERR#13 'Permission = denied=E2=80=99 the access(=E2=80=A6) error is what is expected, but on the failing = hosts access(=E2=80=A6) succeeds! 7254: setgroups(0x2,0x802871000) =3D 0 (0x0) 7254: chdir("/") =3D 0 (0x0) 7254: chdir("/cs/ftp") =3D 0 (0x0) 7254: chroot(".") =3D 0 (0x0) 7254: setgid(0x6710) =3D 0 (0x0) 7254: setuid(0x2710) =3D 0 (0x0) 7254: setrlimit(RLIMIT_NPROC,{ cur=3D0,max=3D0 }) =3D 0 (0x0) 7254: access("/",W_OK) =3D 0 (0x0) any ideas? thanks, danny