- Notifications
You must be signed in to change notification settings - Fork1
doasedit - sudoedit for doas.
NotificationsYou must be signed in to change notification settings
nix-42/doasedit
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
doasedit(8)NAME doasedit - sudoedit for doas.SYNOPSIS doasedit fileDESCRIPTION doasedit allows a permitted user to edit root-owned files by running an unpriviledged editor.INSTALLATION Globally (for all users): $ curl -sLhttp://git.io/doasedit.raw | doas tee /usr/local/bin/doasedit $ curl -sLhttp://git.io/doasedit.readlinkf_posix.raw | doas tee /usr/local/bin/readlinkf_posix $ doas chmod +x /usr/local/bin/doasedit && doas chmod +x /usr/local/bin/readlinkf_posixEXAMPLES To run an editor as non-root: $ doasedit /etc/doas.confTIPS Use this script with enabled persistence in doas.conf file, like: `permit persist :wheel` Also make sure that your doas.conf is owned by root with read-only permissions, like: # chown -c root:root /path/to/doas.conf && chmod 0400 path/to/doas.confLICENSE ISC License. See `license` file for copyright and license details.
About
doasedit - sudoedit for doas.