cannot be launched as root

Bug #51589 reported by Berti
14
Affects Status Importance Assigned to Milestone
EasyUbuntu
Fix Committed
Undecided
Unassigned

Bug Description

If I try to launch easy-ubuntu as root, it crashes :

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.

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
>

Revision history for this message
Kyle Brooks (kyle-brooks) wrote :

No. That isn't the SVN version. That is running 3.02.1 inside a root shell. THAT fails

Revision history for this message
Kyle Brooks (kyle-brooks) wrote :

Fixed (in SVN though)

Changed in easyubuntu:
status: Unconfirmed → Fix Committed
Revision history for this message
Kyle Brooks (kyle-brooks) wrote :

NOTE: you cannot run as root directly or indirectly because the "run as user" functionality makes this redundant. The run as user functionality was introduced due to concerns about security and user-friendliness. So please run EasyUbuntu as a normal user, and you will be prompted for YOUR passsword at the normal time.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.