Skip to content

Conversation

mason1920
Copy link

sudo -e allows the user to edit files of a different user as themselves by making a temporary copy. This can be used to edit privileged files in a familiar environment.

It is superior to the existing method of the r flag, which uses sudo -E and invokes another program, su, with the m option, which doesn't keep the user's path, preventing the user from using a locally installed editor/program.

Additionally, the user might not be authorized to use sudo -E when they otherwise would be able to use sudo -e. The reverse is true as well, so both should be options.

* ranger/config/rifle.conf (sudoedit): New open method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant