|
Re: Using Capistrano to sudo su as another user: msg#00119lang.ruby.capistrano.general
I was able to work around a similar issue by running the sudo command, and in the /etc/sudoers file making sure that no password is prompted for the executable Hope this helps, John George On Dec 18, 12:17 pm, Tony Davis <tony.da...-Re5JQEeQqe8AvxtiuMwx3w@xxxxxxxxxxxxxxxx> wrote: > I have the same problem, any solutions? > > On Dec 7, 1:45 pm, David Adams > <davead...-Re5JQEeQqe8AvxtiuMwx3w@xxxxxxxxxxxxxxxx> wrote: > > > > > I love the idea of Capistrano, but it's not working for me in my > > environment. I hope there's something simple I'm missing, but I'm not > > sure. Here's the situation: > > > I don't have root on the app servers I need to automate. For each > > application, we have a Unix user for which I don't have the password, > > but which owns all the appropriate application files. To administer an > > app, I log in with my personal account, and then I "sudo su - svcuser" > > to become the service account, run whatever commands I need, then > > logout twice. > > > Unfortunately, my limited understanding of Capistrano has failed me at > > this point. eg: > > > task :sudo_test do > > sudo "su - svcuser" > > run "whoami" > > end > > > I get prompted for my password, but then I get the shell prompt of the > > svcuser's shell as output and everything hangs. > > > Any ideas? Let me know if you need more information. I appreciate the > > help. > > > David Adams- Hide quoted text - > > - Show quoted text - |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: set :user being ignored?: 00119, Bill Kocik |
|---|---|
| Next by Date: | Problem with a new role: 00119, alexander.graefe-gM/Ye1E23mwN+BqQ9rBEUg@xxxxxxxxxxxxxxxx |
| Previous by Thread: | Re: Using Capistrano to sudo su as another useri: 00119, John Ward |
| Next by Thread: | Read a remote XML file: 00119, John George |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |