Add the user tftp to /etc/passwd. For example,
HP recommends that you use this method. If there is no /etc/passwd entry
for the user tftp, tftpd has root access to any files or directories you specify
in the entry for tftp in the /etc/inetd.conf file
. If an /etc/passwd
entry exists for the user tftp, tftpd cannot read or write files unless they are
readable or writable by the user tftp.
If you create an /etc/passwd entry for the user tftp, tftpd first looks for
a file relative to the home directory of the user tftp. If the file is not found
there, then tftpd looks for the file relative to the path(s) specified with the tftpd command. If you want to give remote systems permission to retrieve a
file through TFTP, the file must be readable by the user tftp. If you want to
give remote systems permission to transmit a file to your system through TFTP,
the file must be writeable by the user tftp. For example, to create a home
directory for the user tftp, make the directory owner the user tftp, and
ensure the directory gives the user tftp read, write and execute permissions.
For example: