Issue #1890 has been updated by immerda.
running latest head still gives me the following error. (I didn't assume that it have been fixed. just to let you know...) <pre> Mon Feb 23 17:16:50 +0100 2009 /Settings[/srv/puppet/etc/puppet.conf]/Settings[puppetmasterd]/File[/var/log/puppet/masterhttp.log]/owner (warning): Cannot manage ownership unless running as root Mon Feb 23 17:16:50 +0100 2009 /Settings[/srv/puppet/etc/puppet.conf]/Settings[rails]/File[/var/log/puppet/rails.log]/owner (warning): Cannot manage ownership unless running as root Mon Feb 23 17:16:50 +0100 2009 /Settings[/srv/puppet/etc/puppet.conf]/Settings[puppetmasterd]/File[/srv/puppet/bucket]/owner (warning): Cannot manage ownership unless running as root Mon Feb 23 17:16:50 +0100 2009 /Settings[/srv/puppet/etc/puppet.conf]/Settings[puppetmasterd]/File[/srv/puppet/yaml]/owner (warning): Cannot manage ownership unless running as root Mon Feb 23 17:16:51 +0100 2009 /Settings[/srv/puppet/etc/puppet.conf]/Settings[puppetmasterd]/File[/var/log/puppet/puppetmaster.log]/owner (warning): Cannot manage ownership unless running as root </pre> ---------------------------------------- Bug #1890: puppetmasterd initialization attempts to change ownership after it has dropped permissions /issues/1890 Author: micah Status: Accepted Priority: Normal Assigned to: andrew Category: plumbing Target version: 0.25.0 Complexity: Unknown Affected version: 0.24.7 Keywords: The puppetmasterd runs with 'user=puppet' and 'group=puppet' by default, however it seems like there are some initialization things that happen with 0.24.7 that require root permissions, but happen after the root user/group has privileges have been dropped to the puppet user: <pre> 25 19:04:28 puppetmaster puppetmasterd[14238]: (/Settings[/etc/puppet/puppet.conf]/Settings[puppetmasterd]/File[/var/log/puppet/masterhttp.log]/owner) Cannot manage ownership unless running as root Jan 25 19:04:28 puppetmaster puppetmasterd[14238]: (/Settings[/etc/puppet/puppet.conf]/Settings[puppetmasterd]/File[/var/lib/puppet/bucket]/owner) Cannot manage ownership unless running as root Jan 25 19:04:28 puppetmaster puppetmasterd[14238]: (/Settings[/etc/puppet/puppet.conf]/Settings[rails]/File[/var/log/puppet/rails.log]/owner) Cannot manage ownership unless running as root Jan 25 19:04:28 puppetmaster puppetmasterd[14238]: (/Settings[/etc/puppet/puppet.conf]/Settings[rails]/File[/var/log/puppet/rails.log]/group) change from root to puppet failed: failed to chgrp /var/log/puppet/rails.log to 102: Operation not permitted - /var/log/puppet/rails.log Jan 25 19:04:28 puppetmaster puppetmasterd[14238]: (/Settings[/etc/puppet/puppet.conf]/Settings[puppetmasterd]/File[/var/lib/puppet/yaml]/owner) Cannot manage ownership unless running as root Jan 25 19:04:28 puppetmaster puppetmasterd[14238]: Could not call: Got 1 failure(s) while initializing: change from root to puppet failed: failed to chgrp /var/log/puppet/rails.log to 102: Operation not permitted - /var/log/puppet/rails.log Jan 25 19:04:41 puppetmaster puppetmasterd[14238]: (/Settings[/etc/puppet/puppet.conf]/Settings[puppetmasterd]/File[/var/log/puppet/masterhttp.log]/owner) Cannot manage ownership unless running as root Jan 25 19:04:41 puppetmaster puppetmasterd[14238]: (/Settings[/etc/puppet/puppet.conf]/Settings[puppetmasterd]/File[/var/lib/puppet/yaml]/owner) Cannot manage ownership unless running as root Jan 25 19:04:41 puppetmaster puppetmasterd[14238]: (/Settings[/etc/puppet/puppet.conf]/Settings[rails]/File[/var/log/puppet/rails.log]/owner) Cannot manage ownership unless running as root Jan 25 19:04:41 puppetmaster puppetmasterd[14238]: (/Settings[/etc/puppet/puppet.conf]/Settings[rails]/File[/var/log/puppet/rails.log]/group) change from root to puppet failed: failed to chgrp /var/log/puppet/rails.log to 102: Operation not permitted - /var/log/puppet/rails.log Jan 25 19:04:41 puppetmaster puppetmasterd[14238]: (/Settings[/etc/puppet/puppet.conf]/Settings[puppetmasterd]/File[/var/lib/puppet/bucket]/owner) Cannot manage ownership unless running as root Jan 25 19:04:41 puppetmaster puppetmasterd[14238]: Could not call: Got 1 failure(s) while initializing: change from root to puppet failed: failed to chgrp /var/log/puppet/rails.log to 102: Operation not permitted - /var/log/puppet/rails.log </pre> These go away if I change puppetd.conf to have user=root, group=root, but puppetmaster should be able to continue to run as user puppet. ---------------------------------------- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://reductivelabs.com/redmine/my/account --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en -~----------~----~----~----~------~----~------~--~---
