capistrano / capistrano/sshkit

Feature: ability to set custom sudo command

Open
#191 15 comments 0 reactions 0 assignees View on GitHub
enhancement need more info
Dominant language
Ruby
Stars
1.2k
Forks
257
PR merge metrics
No merged PRs in 30d

Description

sometimes it's more comfortable (because of suduers settings) to use
sudo -u user cmd

sometimes it's better to have
sudo su user -c 'cmd'
sudo su - user -c 'cmd'

or even
echo 'cmd' | sudo su - username

it's good to have possibility to change the default wrapper.

At this moment I have a server farm with lot of servers and it looks easier to adjust capistrano script than sudoers on all the servers.

And it's also good to have 'default' sudo user for capistrano. So by deafult it creates files / directories using the same user as was used for ssh connection. But for my case i login using my own account, but do a deploy using account common for all users (and which are not possible to connect via ssh).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.