Skip to content
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

Add method of opening text files with sudo -e #2921

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

1 participant