Closed yriorrio closed 4 years ago
@jonathanunderwood @iamperson347
Was closed because we couldn't reproduce it. I still can't reproduce this. Can you give a solid reproducer?
Starting stubby from a terminal session via /etc/init.d/stubby works fine but if you try to launch it from the luci gui it will fail with the permission error.
I just installed stubby on openwrt-19.07 and it fails to start after rebooting (or from luci) with the permission error.
Starting it manually from ssh does work.
https://github.com/openwrt/packages/blob/master/net/stubby/files/stubby.init#L216
needs -m 0755 added i think.
edit: sorry. a chown command. the cp command might be creating a file owned by root.
When trying to start stubby from Startup tab of web interface, it gives the Permission denied error.
Logging into system and checking permissions:
# ls -l /var/etc/stubby/stubby.yml
-rw------- 1 root root 721 Feb 21 19:18 /var/etc/stubby/stubby.yml
I would prefer having it owned by root and read-only for other users.
Nb. Edited the previous snippets - please see above, not the original email notification.
It's some issue with the init script definitely.
It should be cleaned up.
9991 reports the same problem. It was opened on September 14 but closed by the reporting user on September 16 without any explanation.
Description: when starting stubby it fails to open /var/etc/stubby/stubby.yml due to insufficient permissions. Using chown and chmod to give root full access makes no difference.
stubby version: 0.2.6-1 openwrt version: OpenWrt SNAPSHOT r11583-68fb38548b / LuCI Master git-19.327.83508-5e1253f (community firmware by Davidc502) device: Linksys WRT1200AC
Temporary workaround: SSH into router and launch it with command stubby -g (keep in mind it will read configuration from /etc/stubby/stubby.yml and not /etc/config/stubby)