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>
index | next in thread | raw e-mail
Hi,
I’m 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("/") = 0 (0x0)
55090: chdir("/cs/ftp") = 0 (0x0)
55090: chroot(".") = 0 (0x0)
55090: setgid(0x6710) = 0 (0x0)
55090: setuid(0x2710) = 0 (0x0)
55090: setrlimit(RLIMIT_NPROC,{ cur=0,max=0 }) = 0 (0x0)
55090: access("/",W_OK) ERR#13 'Permission denied’
the access(…) error is what is expected, but on the failing hosts access(…) succeeds!
7254: setgroups(0x2,0x802871000) = 0 (0x0)
7254: chdir("/") = 0 (0x0)
7254: chdir("/cs/ftp") = 0 (0x0)
7254: chroot(".") = 0 (0x0)
7254: setgid(0x6710) = 0 (0x0)
7254: setuid(0x2710) = 0 (0x0)
7254: setrlimit(RLIMIT_NPROC,{ cur=0,max=0 }) = 0 (0x0)
7254: access("/",W_OK) = 0 (0x0)
any ideas?
thanks,
danny
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0B6ED526-08BD-43EE-A11B-0C948F97A190>
