Setting a default user for startunity

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....

3

1 Answer

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.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like