[luci] module auth and init.d script problems

Jo-Philipp Wich xm at subsignal.org
Thu Oct 25 11:40:34 CEST 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi.

> Any help or point out would be greatly appreciated.

The "Applying changes" box actually calls /servicectl/ (defined in
/usr/lib/lua/luci/controller/admin/servicectl.lua) via AJAX, so make
sure that you change the sysauth there as well.

You should be able to monkey-patch it from one of your controllers
like this:

- -- 8< --
local ctl = node("servicectl")
if ctl then
    ctl.sysauth = { "administrator", "operator" }
end
- -- >8 --


~ Jow
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlCJCQ4ACgkQdputYINPTPPFwgCeJgU6jMliphgO1OT32CDkR7Sk
gKsAnR0XCH3hh5VXBZVCk0xBN6QYM9uq
=j+wx
-----END PGP SIGNATURE-----


More information about the luci mailing list