-
Notifications
You must be signed in to change notification settings - Fork 0
doasedit - sudoedit for doas.
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 file DESCRIPTION doasedit allows a permitted user to edit root-owned files by running an unpriviledged editor. INSTALLATION Globally (for all users): $ curl -sL http://git.io/doasedit.raw | doas tee /usr/local/bin/doasedit $ curl -sL http://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_posix EXAMPLES To run an editor as non-root: $ doasedit /etc/doas.conf TIPS 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.conf LICENSE ISC License. See `license` file for copyright and license details.
About
doasedit - sudoedit for doas.