By default, Capistrano will use the :runner variable to determine who
to sudo as, and this defaults to "app". If you want to use root, just
set :runner to "root".

- Jamis

On 8/7/07, Kimball <[EMAIL PROTECTED]> wrote:
>
>
>
> On Aug 7, 6:13 pm, "Jamis Buck" <[EMAIL PROTECTED]> wrote:
> > Be sure and tell capistrano where rake is on your remote machines. I'm
> > betting it is somewhere like /usr/local/bin, which is in your login
> > path, but not in the machine's default path. Try this:
> >
> >   set :rake, "/usr/local/bin/rake"
> >
> > - Jamis
> >
>
> Jamis,
>
> Thank you very much - this took care of the rake problem, as I had
> rake installed in a slightly non-standard location that was in my
> login path, but not in the default machine path.
>
> However, now I'm getting this:
>
>  * executing "sudo -u app sh -c 'cd /var/www/myapp/current && nohup
> script/spin'"
>     servers: ["www.someserver.com"]
>     [www.someserver.com] executing command
>  ** [out :: www.someserver.com] sudo:
>  ** [out :: www.someserver.com] no passwd entry for app!
>  ** [out :: www.someserver.com]
>     command finished
> command "sudo -u app sh -c 'cd /var/www/myapp/current && nohup script/
> spin'" failed on www.someserver.com
>
>
> Why is it trying to use app as the user?  I'm already having it log in
> via ssh as root, which has correct permissions to start up the spin
> script, and it never tried to use "app" as a user anywhere else.
>
> Is this another setting I need to adjust in deploy.rb?
>
> Thanks!
>
> -- Kimball
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to