On Thursday, July 17, 2014 9:52:23 AM UTC-5, Supriya Uppalapati wrote:
>
> Hi,
>  
> I am having an issue with exc statement. running through non-root user.
>  
> *Error: Failed to apply catalog: Parameter user failed on Exec[extract 
> p17071663_1036_Generic.zip]: Only root can execute commands as other users 
> at 
> /etc/puppetlabs/puppet/environments/testing/modules/wls/manifests/bsupatch.pp*
>  
>  
> *Let me know how to exec through non root user*
>  
>


The message seems pretty clear to me.  If you are running Puppet as 
non-root then you must not specify a 'user' for your command to run as.  
You must not specify even the non-root user who happens to be running that 
puppet agent instance, as Puppet cannot necessarily recognize that that's 
what you have done.  If you just omit the 'user' parameter from your exec 
then it will automatically run as whatever user the agent is running as.


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/130eee37-66be-47d9-be1e-1da3f59e78f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to