Modify

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:

Description

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:

#!/usr/bin/lua


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):

http://luci.subsignal.org/trac/ticket/655

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

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.