Skip to content

Instantly share code, notes, and snippets.

@vanhecke
Created December 22, 2015 12:59
Show Gist options
  • Save vanhecke/0d0e7684581d42301025 to your computer and use it in GitHub Desktop.
Save vanhecke/0d0e7684581d42301025 to your computer and use it in GitHub Desktop.
# cat /etc/doas.conf
# Users
permit nopass joris cmd openup
permit joris cmd reboot
# Daemons - Startup
permit nopass root as _teleirc cmd /usr/local/bin/teleirc
permit nopass root as joris cmd /usr/local/bin/teleirc
# file /root/.teleirc/config.js
/root/.teleirc/config.js: ASCII C++ program text
# file /home/_teleirc/.teleirc/config.js
/home/_teleirc/.teleirc/config.js: ASCII C++ program text
# doas -u _teleirc /usr/local/bin/teleirc
ERROR while reading config:
Error: Cannot find module '/root/.teleirc/config.js'
Please make sure it exists and is valid. Run "teleirc --genconfig" to generate a default config.
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment