On Wed, Mar 5, 2014 at 1:32 PM, Ken Bantoft <kbant...@satcomdirect.com> wrote: > > > > > > > On 3/5/14, 5:53 AM, "Yegor Yefremov" <yegorsli...@googlemail.com> wrote: > >>On Mon, Jan 20, 2014 at 9:38 AM, Yegor Yefremov >><yegorsli...@googlemail.com> wrote: >>> On Sat, Jan 18, 2014 at 4:02 PM, Jo-Philipp Wich <j...@openwrt.org> >>>wrote: >>>> Hi. >>>> >>>>>Thanks for explanation. I've solved the problem of reappearing >>> sub-tabs through replacing 'c' with 'ctx.tree' in remove_idx() call. >>> But as you've mentioned, it is only a cosmetic fix. Direct access by >>> manipulating the URL is still possible. >>> >>> I've updated my SO answer. >> >>I've got another issue now. Some settings for example changing WAN >>settings (protocol etc.) show strange behavior when logged in not as >>"root". The changes will be applied (I can see it via uci show network >>and I see /tmp/.uci/network created), but LuCI's "Waiting for changes >>to be applied.." stays forever. I can though change to any other >>tab/link within LuCI, so web interface is still working. Are there any >>permissions, that are set to root write only? >> >>How can I test/try >>http://git.openwrt.org/?p=project/luci2/ui.git;a%3Dsummary ? >> >>Yegor > > Hi Yegor, > > I ran into this when I renamed 'root' to 'admin'. Some pages would save, > but most others would get stuck with the "Waiting for changes..." forever. > > This is NOT the 'correct' way to fix it, but it resolved it for me. The > nixio.exec() call seems to hang when logged in as non-root (even if UID = > 0) but luci.sys.exec() works fine. > > Index: /luci/luci/modules/admin-core/luasrc/controller/admin/servicectl.lua > =================================================================== > --- > /luci/luci/modules/admin-core/luasrc/controller/admin/servicectl.lua (revis > ion 196) > +++ > /luci/luci/modules/admin-core/luasrc/controller/admin/servicectl.lua (revis > ion 1225) > @@ -54,5 +54,9 @@ > o:close() > > - nixio.exec("/bin/sh", unpack(command)) > + local aa,bb,cc,dd,ee = unpack(command) > + luci.sys.exec(aa .. " " .. bb .. " " .. cc .. " " .. > dd .. " " .. ee) > + > + -- This seems to fail to return on network stuff > + -- nixio.exec("/bin/sh", unpack(command)) > else > luci.http.write("OK")
Thanks for the hack, but it doesn't work for me. Compared to your situation I have a user with UID=1000, but GID=0 aka "root". Have you tried such combination? Yegor _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel