I ran into an issue lately specific to sudo on Ubuntu. I was trying out RM Install and installed it to the /opt/rminstall directory. It worked great except when I would sudo (such as through Capistrano). When using sudo it would not load the paths.
It turns out Ubuntu contains a modified version of sudo that does not allow anything outside the default specific paths to be added. I chased it for about 6 hours before I found that out in a blog post. You can apparently compile your own sudo and it will work, I just didn't want to go that route. Greg On 9/21/07, John Ward <[EMAIL PROTECTED]> wrote: > Try adding them to the following file of the user you're connecting as. > > ~/.ssh/environment > > Worked for me as sshd executes this file at login. See > http://unixhelp.ed.ac.uk/CGI/man-cgi?sshd+8 for more info. > > > > > Isak wrote: > > I have an issue with environment variables, namely path, not being set > > correctly for capistrano's deploy tasks (2.0.0, if that matters). > > > > I've found some related posts here, but those seem to cover the single- > > user-with-no-root-access scenario. I'd really like to update the > > settings system wide, as we have more than one user deploying, and on > > the server itself rather than in the deploy script. > > > > I've tried adding "export PATH=$PATH:/var/lib/gems/1.8/bin" to /etc/ > > profile, /etc/bash.bashrc and /etc/login.defs, but neither of seems to > > affect the path seen by capistrano. > > > > > > Thanks, > > Isak > > > > > > > > > > > > > > > -- Thanks, Greg Benedict --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
