this post was submitted on 30 Apr 2024
79 points (92.5% liked)

Linux

4845 readers
464 users here now

A community for everything relating to the linux operating system

Also check out !linux_memes@programming.dev

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] mikyopii@programming.dev 12 points 4 months ago (10 children)

Is there something wrong with doas? I thought doas was smaller with less of an attack surface.

[–] Kwdg@discuss.tchncs.de 8 points 4 months ago (1 children)

The only problem I found was, that it has no real alternative to sudoedit

[–] refalo@programming.dev 2 points 4 months ago (1 children)
[–] Kwdg@discuss.tchncs.de 0 points 4 months ago

Not really visudo is only to edit the sudoers file. sudoedit is a better way to edit system files.

  1. Temporary copies are made of the files to be edited with the owner. set to the invoking user.

  2. The editor specified by the policy is run to edit the temporary files. The sudoers policy uses the SUDO_EDITOR, VISUAL and EDITOR environment variables (in that order). If none of SUDO_EDITOR, VISUAL or EDITOR are set, the first program listed in the editor sudoers(5) option is used.

  3. If they have been modified, the temporary files are copied back to their original location and the temporary versions are removed.

load more comments (8 replies)