saurabh kumar
2012-Oct-12 07:58 UTC
[Puppet Users] problem while moving a package from not-root directory to root directory
Hi,
I am having an issue when i try to move a package from non-root directory
to root-directory...
What i Did is:
1. create a directory with non-root user as the owner
2. copied a package from server using ''file'' parameter as
shown below:
file { "/usr/local/packages/java.tar.gz":
source => "puppet:///haproxy/files/java.tar.gz",
alias => "java-package",
require => File["package-directory"],
}
3. Then, when i tried to move this tar file to some directory owned by root
user, it gives me error
********************************************************************************************************************************************************************************************************************
File[/usr/local/packages/java.tar.gz]/ensure: change from absent to file
failed: failed to chgrp /usr/local/packages/java.tar.gz to 0: Operation not
permitted - /usr/local/packages/java.tar.gz
********************************************************************************************************************************************************************************************************************
My puppet version is ''0.25.5''
my puppet-server is running via root-user , while my puppet client is
running via a non-root user.
Please provide some solution for this issue.
Thanks
Saurabh
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/6jtciYtLSPoJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
Saurabh Bathe
2012-Oct-12 09:27 UTC
Re: [Puppet Users] problem while moving a package from not-root directory to root directory
On Fri, Oct 12, 2012 at 1:28 PM, saurabh kumar <saurabh.kumar2310@gmail.com> wrote:> my puppet-server is running via root-user , while my puppet client is > running via a non-root user.This could be the issue. The user running the puppet does not have enough privileges to complete that action. -- Thanks Saurabh Bathe -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
jcbollinger
2012-Oct-12 13:25 UTC
[Puppet Users] Re: problem while moving a package from not-root directory to root directory
On Friday, October 12, 2012 2:58:16 AM UTC-5, saurabh kumar wrote:> > my puppet-server is running via root-user , while my puppet client is > running via a non-root user.That is exactly backwards. The master does not need to run as a privileged user, therefore it should not do so. The client, on the other hand, normally *does* need to run as a privileged user (e.g. root) because that is necessary for managing most resources of interest. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/_pOP2VrGvAQJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.