Setting a Default User for Startunity

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

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

James H. Sterling
Author

James H. Sterling

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.