mirror of
				https://github.com/billz/raspap-webgui.git
				synced 2025-03-01 10:31:47 +00:00 
			
		
		
		
	Add restricted wpa_cli commands to sudoers
This commit is contained in:
		| @@ -9,7 +9,11 @@ www-data ALL=(ALL) NOPASSWD:/bin/rm /var/run/wpa_supplicant/wl* | ||||
| www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli -i wl* scan_results | ||||
| www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli -i wl* scan | ||||
| www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli -i wl* reconfigure | ||||
| www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli -i wl* select_network * | ||||
| www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli -i wl* add_network | ||||
| www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli -i enable_network [0-9] | ||||
| www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli -i wl* select_network [0-9] | ||||
| www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli -i wl* set_network [0-9] * | ||||
| www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli -i wl* remove_network [0-9] | ||||
| www-data ALL=(ALL) NOPASSWD:/bin/cp /tmp/hostapddata /etc/hostapd/hostapd.conf | ||||
| www-data ALL=(ALL) NOPASSWD:/bin/systemctl start hostapd.service | ||||
| www-data ALL=(ALL) NOPASSWD:/bin/systemctl stop hostapd.service | ||||
|   | ||||
		Reference in New Issue
	
	Block a user