visudo + sudoedit = ♥?
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- C
- Estrellas
- 1.7k
- Forks
- 306
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 24
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de sudo-project/sudo
-
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
sudo-project/sudo#583 ·
Los mantenedores suelen responder en 1 día
-
Signal forwarded to the command is lost when it arrives between fork() and execve() of the commandAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
sudo-project/sudo#566 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
sudo-project/sudo#553 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
sudo-project/sudo#552 ·
Los mantenedores suelen responder en 1 día
-
Documentation text overflows container instead of wrappingQuizá libre de nuevo @BittuBarnwal7479 la tomó hace 131 días y no hay ningún pull request abierto. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 58/100
sudo-project/sudo#547 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de sudo-project/sudo
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
area:docs area:stdlib found-by:duet-audit kind:docs-drift
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
InauguralSystems/EigenScript#2251 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
flux-framework/flux-coral2#513 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ly05010419/MacNativeGames#1420 ·
Los mantenedores suelen responder en 1 día
-
Isaac workingAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
seedds/nxnative#763 · 1 comentario ·
Los mantenedores suelen responder en 1 día