tftpd config problem
tjr at FreeBSD.ORG
Wed Apr 2 18:17:42 PST 2003
On Wed, Apr 02, 2003 at 04:39:53PM -0800, Randy Bush wrote:
> the following allows tftp from 188.8.131.52
> tftp dgram udp wait nobody /usr/libexec/tftpd tftpd -l /foo -u luser /foo/184.108.40.206
> but the following did not
> tftp dgram udp wait nobody /usr/libexec/tftpd tftpd -lC /foo -u luser -s /foo /foo/220.127.116.11
> giving errors of the form
> Apr 3 00:25:04 xx tftpd: chroot: /foo/18.104.22.168: Operation not permitted
> any clues?
You are running tftpd as "nobody" and asking it to chroot into /foo,
which is a privileged operation. You should probably run tftpd as root,
and use the -u option to make it run as an unprivileged user.
More information about the freebsd-stable