Feature: ability to set custom sudo command
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
Research direction
The issue does not name files or tests. Start by locating SSHKit's sudo command handling and the code that selects the remote user; define the supported wrapper configuration and default deploy-user behavior, then add coverage for the documented command forms.
Written by the indexing model from the issue text.
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).
- Dominant language
- Ruby
- Stars
- 1.2k
- Forks
- 257
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from capistrano/sshkit
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
capistrano/sshkit#563 · 6 reactions ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
capistrano/sshkit#562 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
capistrano/sshkit#554 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
capistrano/sshkit#543 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
capistrano/sshkit#518 · 1 comment ·
All issues in capistrano/sshkit
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
riscv/riscv-unified-db#2626 ·
-
Component: GLib
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
ds-drift
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
we-promise/sure#3693 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
simp/pupmod-simp-simp#395 ·