From: Mehdi Abaakouk Date: Thu, 9 Aug 2012 08:08:33 +0000 (+0200) Subject: let tftpd-hpa change the uid and gid of the process X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=634aad0477bb3480270bc8beaaf8252bc06fcb77;p=puppet-tftp.git let tftpd-hpa change the uid and gid of the process 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 --- diff --git a/manifests/init.pp b/manifests/init.pp index 4fe22be..f91763e 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -58,9 +58,10 @@ class tftp ( 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',