sdelrio / rpi-hostap

Transform your PI into a Wireless Router (DHCP and WPA2 already insisde)
76 stars 65 forks source link

dhcpd permission error #18

Open waterghost-2046 opened 1 year ago

waterghost-2046 commented 1 year ago
Database file: /var/lib/dhcp/dhcpd.leases
PID file: /run/dhcp/dhcpd.pid
Can't create new lease file: Permission denied
Listening on LPF/wlp1s0/a0:c5:89:5f:03:07/192.168.254.0/24
Sending on   LPF/wlp1s0/a0:c5:89:5f:03:07/192.168.254.0/24
Sending on   Socket/fallback/fallback-net
Can't create PID file /run/dhcp/dhcpd.pid: Permission denied.
Starting HostAP daemon ...
Configuration file: /etc/hostapd.conf
wlp1s0: IEEE 802.11 Configured channel (1) not found from the channel list of current mode (2) IEEE 802.11a
wlp1s0: IEEE 802.11 Hardware does not support configured channel
Could not select hw_mode and channel. (-3)
wlp1s0: interface state UNINITIALIZED->DISABLED
wlp1s0: AP-DISABLED 
wlp1s0: Unable to setup interface.
wlp1s0: interface state DISABLED->DISABLED
wlp1s0: AP-DISABLED 
wlp1s0: CTRL-EVENT-TERMINATING 
hostapd_free_hapd_data: Interface wlp1s0 wasn't started
nl80211: deinit ifname=wlp1s0 disabled_11b_rates=0

I tried to change the permissions, but the container is immediately turned off so I can't change the permissions.