Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have installed Ubuntu via Crouton on my ChromeBook. So far, everything works fine.

The problem is, it starts with the normal user that was set up. I have enabled the root account, and set a password (as usual).
Now I want to login (graphically) as root.

The way I start gnome now is: sudo startunity.
How can I start it as root ? When I click on logout, it just shuts the gnome session down.

It seems that part of the answer is doing something like:

sudo enter-chroot
su root --> enter password 
startunity

Now the only question remaining is how to set the default user, so I don't have to enter the password every time....

share|improve this question
    
Why is this off-topic? See meta.askubuntu.com/questions/7095/… . Isn't Crouton just another install mechanism? –  belacq Feb 20 at 22:07
    
1  
@Braiam Oli suggested "leave them open unless they're about installing". What am I missing? You have answers with fewer votes on both questions arguing that they are off-topic. –  belacq Feb 22 at 4:30

1 Answer 1

Ah, found it.

In /usr/local/bin/enter-chroot

there are a few defines first. e.g. USERNAME='1000'

where 1000 is the id of the user that unity is started with.
Since the user "root" always has id 0, switch it to 0 and it starts it as root.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.