Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Feature: ability to set custom sudo command

Open
#191 15 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
ruby
Domain
devops

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

enhancement need more info

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from capistrano/sshkit

All issues in capistrano/sshkit

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.