-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: reset $HOME by using sudo -H #341
Comments
This was previously discussed in #187. We'll consider a PR for this enhancement. Can you provide one? |
Surely https://github.com/capistrano/sshkit#tunneling-and-other-related-ssh-themes solves this by allowing you to add a |
@leehambley Would be nicer not to have a config otherwise I would have to share that accross a team But I ll take a look at making a pull request somehow |
@epinault if you read the link given, you can commit an SSH config to the repo, and SSHKit will find it, if that's not working please open a bug report. |
@leehambley Sorry my ignorance but how does ssh relate to sudo in this case? Sudo is ran with sudo -u which preserve HOME. How would the ssh config help? I need to be able to connect as a specific user (different from the machine use who runs my processes) |
You were not clear that:
Was a server-side config. Please go and adopt the closed PR if you want this feature added. |
The command for sudo
is not resetting the HOME on Ubuntu unless I add the following to the sudoer file
Defaults always_set_home
Since there is no way to override from sshkit, ( using -H) , I had to set my server to have that options. It would be nice to have the options from sshkit to not preserve the HOME
The text was updated successfully, but these errors were encountered: