visudo + sudoedit = ♥?
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 25/100
Rechercherichtung
Start by reading the visudo and sudoedit entry points and how visudo invokes an editor; the issue does not name source files or tests. Work out how permission checks and syntax validation interact before estimating an implementation. Done means visudo can support editing sudoers files as the invoking user while retaining syntax validation, including a clear response when required permissions are missing.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
I'd like a way to edit my sudoers file (or one of its includes) in a way that combines the best of sudoedit and visudo:
- Runs the editor as myself, like
sudoedit - Ensures I got the syntax right, like
visudo
This might be doable today using something like sudo SUDO_EDITOR=my-wrapper visudo, where my-wrapper is a script that copies the given temp file over to a user-writeable one, runs sudoedit on that as SUDO_USER, and copies the modified file back over to original the temp file.
However, I think it would be much nicer if this functionality was available built-in.
In terms of the user interface, I would think it makes most sense to just enhance visudo to detect if it is being run by a user without write access to the given file(s) (i.e. typically a non-root user). If so, rather than invoking the editor directly, it would run sudoedit; perhaps after first checking via sudo -l that the required permissions exist (in order to give a better error message if not).
If this makes sense, I'd be happy to have a go at implementing this.
- Vorherrschende Sprache
- C
- Sterne
- 1.7k
- Forks
- 306
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 24
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus sudo-project/sudo
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 42/100
sudo-project/sudo#583 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Signal forwarded to the command is lost when it arrives between fork() and execve() of the commandOffen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
sudo-project/sudo#566 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 52/100
sudo-project/sudo#553 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
sudo-project/sudo#552 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Documentation text overflows container instead of wrappingEvtl. wieder frei @BittuBarnwal7479 hat das vor 131 Tagen übernommen, und es ist kein Pull Request offen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 58/100
sudo-project/sudo#547 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in sudo-project/sudo
Ähnliche Issues
-
severity: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
luainkernel/lunatik#2221 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
zephyrproject-rtos/zephyr#124160 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
davatorium/rofi#2347 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
Maintainer antworten meist innerhalb von 1 Tag
-
area:docs area:stdlib found-by:duet-audit kind:docs-drift
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
InauguralSystems/EigenScript#2251 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag