tftpd-hpa try to change the uid and gid of the process before serving a file
and it can't if xinetd start the process with a user other than root.
This result to this following message and tftp can't serve file
in.tftpd[17609]: cannot set groups for user nobody
To customise user/group of the running process we need to use -u option
xinetd::service { 'tftp':
port => $port,
protocol => 'udp',
- server_args => "${options} ${directory}",
+ server_args => "${options} -u ${username} ${directory}",
server => $binary,
- user => $username,
+ user => 'root',
+ group => 'root',
bind => $address,
socket_type => 'dgram',
cps => '100 2',