Opened 4 years ago

Last modified 4 years ago

#15192 new defect

ubus call fails for user nobody

Reported by: ab@… Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: ubus Cc:


if you query ubus using user nobody, it fails with an error. calling:

lua -lnixio -e 'nixio.setgid(65534); nixio.setuid(65534); nixio.exec("/root/test.lua")'

/usr/bin/lua: /root/test.lua:6: attempt to index global '_ubus' (a nil value)
stack traceback:
	/root/test.lua:6: in main chunk
	[C]: ?

Test file:


local bus = require "ubus"
_ubus          = bus.connect()
_ubuswificache = _ubus:call("network.wireless", "status", {}) or {}

if you call the script as root, everything works fine.

there's also a ticket for luci, some status views fail (e.g the wifi overview stays empty and the olsr neighbors view fails):

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by bittorf@…

any idea how this can be solved in the long run?

Add Comment

Modify Ticket

as new .

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.