Skip to content

Support for sudo -e (and sudoedit) #762

@mrnossiom

Description

@mrnossiom

Hi 👋🏻,

Description

sudo historically has a command to edit a file with the configured editor of your choice, often sudo -e or his own binary sudoedit. It copies the file with your user's permissions in a temporary place so that you can freely edit it.

The -e argument is already defined in the CLI options, so this could be more of a tracking issue.

Whether there should be a sudoedit binary distributed along the others can be discussed here. Since sudo-rs aims to be a fully functional replacement, including a sudoedit binary would help for backwards compatibility. It could also be an opportunity to drop a binary that mirrors the behavior of sudo -e

Additional information

You can see an implementation of such a command here: github.com/sudo-project/sudo:main/src/sudo_edit.c (in C though 🤮)

I'm willing to try a PR for this 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions