Comment 1 for bug 51589

Revision history for this message
KarlGoetz (kgoetz) wrote : Re: [Bug 51589] cannot be launched as root

Berti wrote:
> Public bug reported:
>
> If I try to launch easy-ubuntu as root, it crashes :

rg/kb
can we have an `if (uid=0); echo "Please do not run EasyUbuntu inside a
root shell"; fail` arangement?
kk

>
> root@neptune:/tmp/easyubuntu # python easyubuntu.in
> System sanity check: PASSED!
> amd64 detected
> Traceback (most recent call last):
> File "easyubuntu.in", line 51, in ?
> main()
> File "easyubuntu.in", line 42, in main
> detect.replace(confdir)
> File "/tmp/easyubuntu/EasyUbuntu/detect.py", line 184, in replace
> cmd = "chown -R " + user + ":" + user + " " + confdir
> TypeError: cannot concatenate 'str' and 'NoneType' objects
>
> If I log as usual user & launch it via sudo, it's OK.
>
> ** Affects: easyubuntu (upstream)
> Importance: Untriaged
> Status: Unconfirmed
>