xbianonpi / xbian

XBMC on Raspberry Pi, Bleeding Edge
https://xbian.org
GNU General Public License v3.0
294 stars 46 forks source link

Security problem - sudo is needed to start kodi, why ? #863

Closed plumpsack closed 5 years ago

plumpsack commented 5 years ago

Hi,

why do I need "sudo" to start kodi ?

I renamed sudo from /usr/bin/sudo and figured out that xbmc/kodi will not start anymore in the gui.

Why?

mkreisl commented 5 years ago

It's not a security problem

Kodi is running as user/group xbian, and this is done by sudo, see here

If you set the variable DPRIORITY=yes in /etc/default/xbmc, sudo is not used

plumpsack commented 5 years ago

ok, i set DPRIORITY=yes into /etc/default/xbmc but after an reboot I get an xbmc-config-error message on my screen. ?

mkreisl commented 5 years ago

Tell me, why do you rename sudo ???

That makes absolutely no sense, xbian-config for example (which is started per default if you log in as user xbian) is started via sudo, because root rights are required.

plumpsack commented 5 years ago

Tell me, why do you rename sudo ???

That makes absolutely no sense, xbian-config for example (which is started per default if you log in as user xbian) is started via sudo, because root rights are required.

And that is exactly the problem.

Why does a normal user needs "sudo" to run kodi?

mkreisl commented 5 years ago

And that is exactly the problem.

Which problem?

Why does a normal user needs "sudo" to run kodi?

That's the way it is