Skip to content
Aurélien Ooms edited this page Jan 25, 2020 · 8 revisions
sudo visudo -f /etc/sudoers.d/nopasswd

Defaults    timestamp_timeout=1440

%wheel ALL = (ALL) NOPASSWD: /usr/bin/tee /sys/class/leds/smc\:\:kbd_backlight/brightness
%wheel ALL = (ALL) NOPASSWD: /usr/bin/tee /sys/class/leds/asus\:\:kbd_backlight/brightness
%wheel ALL = (ALL) NOPASSWD: /usr/bin/tee /sys/class/leds/tpacpi\:\:kbd_backlight/brightness
%wheel ALL = (ALL) NOPASSWD: /usr/bin/tee /sys/class/backlight/intel_backlight/brightness 
%wheel ALL = (ALL) NOPASSWD: /usr/bin/tee /sys/class/backlight/gmux_backlight/brightness 
%wheel ALL = (ALL) NOPASSWD: /usr/bin/tee /sys/class/drm/card0/device/power_dpm_state

%wheel ALL = (ALL) NOPASSWD: /usr/bin/systemctl start dhcpcd
%wheel ALL = (ALL) NOPASSWD: /usr/bin/systemctl stop dhcpcd
%wheel ALL = (ALL) NOPASSWD: /usr/bin/systemctl restart dhcpcd

%wheel ALL = (ALL) NOPASSWD: /usr/bin/systemctl start bluetooth
%wheel ALL = (ALL) NOPASSWD: /usr/bin/systemctl stop bluetooth
%wheel ALL = (ALL) NOPASSWD: /usr/bin/systemctl restart bluetooth

%wheel ALL = (ALL) NOPASSWD: /usr/bin/systemctl start netctl-auto@*
%wheel ALL = (ALL) NOPASSWD: /usr/bin/systemctl stop netctl-auto@*
%wheel ALL = (ALL) NOPASSWD: /usr/bin/systemctl restart netctl-auto@*

%wheel ALL = (ALL) NOPASSWD: /usr/bin/systemctl start netctl@*
%wheel ALL = (ALL) NOPASSWD: /usr/bin/systemctl stop netctl@*
%wheel ALL = (ALL) NOPASSWD: /usr/bin/systemctl restart netctl@*

%wheel ALL = (ALL) NOPASSWD: /usr/bin/netctl start w*
%wheel ALL = (ALL) NOPASSWD: /usr/bin/netctl stop w*
%wheel ALL = (ALL) NOPASSWD: /usr/bin/netctl restart w*

%wheel ALL = (ALL) NOPASSWD: /usr/bin/wifi-menu

%wheel ALL = (ALL) NOPASSWD: /usr/bin/iw dev w* scan

%wheel ALL = (ALL) NOPASSWD: /usr/bin/ip link set e* up
%wheel ALL = (ALL) NOPASSWD: /usr/bin/ip link set e* down
%wheel ALL = (ALL) NOPASSWD: /usr/bin/ip link set w* up
%wheel ALL = (ALL) NOPASSWD: /usr/bin/ip link set w* down

%wheel ALL = (ALL) NOPASSWD: /usr/bin/create_ap w*
Clone this wiki locally