133
you are viewing a single comment's thread
view the rest of the comments
[-] kevincox@lemmy.ml 0 points 4 months ago

Out of the box no. But it would be easy to implement if you don't need very complex rules. (I don't actually know how permissions work for sudoedit.)

[-] bamboo@lemm.ee 3 points 4 months ago

sudoedit copies a file to a temp directory, invokes $EDITOR with that temp file, and after the editor process exits, it copies the file back to overwrite the original. This way you get your user preferred and configured editor, but it doesn’t have any elevated privileges.

[-] kevincox@lemmy.ml 1 points 4 months ago

Yes, but how do you configure who is allowed to edit which files in /etc/sudoers?

this post was submitted on 01 May 2024
133 points (96.5% liked)

Open Source

30447 readers
599 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 5 years ago
MODERATORS