diff options
author | Mehdi Abaakouk <sileht@sileht.net> | 2012-08-09 10:08:33 +0200 |
---|---|---|
committer | Mehdi Abaakouk <sileht@sileht.net> | 2012-08-09 10:08:33 +0200 |
commit | 634aad0477bb3480270bc8beaaf8252bc06fcb77 (patch) | |
tree | 0ddfed512afcd147354c4dd2b438dfcaccdefcd5 | |
parent | 7accc6e0d6d675baaf9a1d8ec0cae7f6ff7265d0 (diff) | |
download | puppet-tftp-634aad0477bb3480270bc8beaaf8252bc06fcb77.tar.gz puppet-tftp-634aad0477bb3480270bc8beaaf8252bc06fcb77.tar.bz2 |
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
-rw-r--r-- | manifests/init.pp | 5 |
1 files changed, 3 insertions, 2 deletions
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', |