execute uses mixlib-shellout https://github.com/opscode/mixlib-shellout
under the hood, which in turn (on Unix-y platforms) forks and sets the uid
of the child process. So, it does run the command “as” the specified user,
but it doesn’t “log in” as that user. If what you need is for your command
to run under tcsh as that user, you could use the script resource
http://docs.getchef.com/resource_script.html and specify an interpreter,
I notice that Chef actually has a “csh” resource
http://docs.getchef.com/resource_csh.html which might do the trick (since
tcsh is csh-compatible).
On Wed, Aug 13, 2014 at 9:30 AM, email@example.com wrote:
I’m trying to deploy a software tha has to be install in a expecific user
when I try this, the user doesn’t change(stays root).
execute ‘install_scos’ do
-c=Single -p=Standalone_single -z=Multi
Is there a way that i can why chef login in another user., and run
this has to be done in that user because it uses a diferente shell (tcsh).