Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Oct 2019 08:38:49 +0300
From:      Daniel Braniss <danny@cs.huji.ac.il>
To:        freebsd-hackers@freebsd.org
Subject:   vsftpd: very strange bug?
Message-ID:  <0B6ED526-08BD-43EE-A11B-0C948F97A190@cs.huji.ac.il>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0B6ED526-08BD-43EE-A11B-0C948F97A190>