Unable to get tftpd working.. please help
807557Nov 14 2006 — edited Nov 15 2006I recently tried to get tftpd working, but ran into a number of problems.
I want to lock down the tftp homedir (chroot) to a specific user, tftpd in my example. It seems, however, that no matter what I do in.tftpd is run as nobody when clients connect:
nobody 8984 18810 0 16:56:24 ? 0:00 /usr/sbin/in.tftpd -s /tftpboot
In addition, I am having permission problems from the client side:
%Error opening tftp://x.x.x.x/test' (Permission denied)
Here is my tftpboot directory:
drwxrwxrwx 2 nobody root 512 Nov 14 16:42 tftpboot//
Within that directory:
-rw-r--r-- 1 nobody root 0 Nov 14 16:59 test
When I chmod 666 that file, it appears to work, but I am at a loss as to why. If in.tftpd is being run as "nobody" then why wouldn't 644 work?
Also, how can I modify the user that in.tftpd is run as?
inetadm shows the following:
SCOPE NAME=VALUE
name="tftp"
endpoint_type="dgram"
proto="udp6"
isrpc=FALSE
wait=TRUE
exec="/usr/sbin/in.tftpd -s /tftpboot"
user="root"
Why isn't it being run as "root"? Also, if I change that to "tftpd" it doesn't seem to work, and I have created a user by that ID.
Any help would be appreciated.
Thanks,