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

Feature request: Sudoedit update file on write

Open
#301 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
c

Research direction

The request concerns sudoedit behavior while editing a user temporary file, but it names no source files or tests. Start by locating the sudoedit implementation and its existing tests, then trace how edits are copied back to the original file. Done means changes can be saved during the editing session without repeatedly exiting and invoking sudoedit again.

Written by the indexing model from the issue text.

Description

You could listen on user tmp file and update original file, when user changes it.
For example using vim

sudoedit /etc/asound.conf

Change something do :w, test changes, keep modifying and so on..
It's a little bit annoying to exit file in order to save changes, open it and often type password again, because sudo password expired. Changing sudo timeout is not a good idea IMO.

Dominant language
C
Stars
1.7k
Forks
306
Avg merge
1d 2h
Merged PRs (30d)
22

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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 sudo-project/sudo

All issues in sudo-project/sudo

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.