From 634aad0477bb3480270bc8beaaf8252bc06fcb77 Mon Sep 17 00:00:00 2001 From: Mehdi Abaakouk Date: Thu, 9 Aug 2012 10:08:33 +0200 Subject: 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 --- manifests/init.pp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'manifests') 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', -- cgit v1.2.3