vsftpd: very strange bug?
Daniel Braniss
danny at cs.huji.ac.il
Fri Oct 4 05:38:54 UTC 2019
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
More information about the freebsd-hackers
mailing list