Signing in as "owner" on a Chromium OS build?

3 views
Skip to first unread message

Oren Blasberg

unread,
May 22, 2015, 3:01:49 PM5/22/15
to chromium-dev, chromium...@chromium.org
Hi all,

I've got my own Chromium build with chromeos=1, and I'm trying to use the "Users" UI in the settings page, accessed by launching Chromium OS, going to the settings page, scrolling down to the "People" section and clicking "Manage other users..."

However, in the dialog that pops up, everything is disabled since the settings "may only be modified by the owner." Note that I've used the --login-manager flag when running chrome so I was able to sign in as a specific user but it isn't considered the owner.

How do I sign in as the owner so I can add users and play with this UI?

Thanks,
Oren

Inline image 1

Mattias Nissler

unread,
May 22, 2015, 3:43:02 PM5/22/15
to or...@chromium.org, Chromium-dev, chromium...@chromium.org

I believe it is currently not possible to get chrome into a state where it will believe the owner is logged in. A user is the device owner by virtue of having the private half of the owner key pair. However, the key pair isn't generated by chrome, but by session_manager.

I haven't tried, but you may be able to hack the code here to pretend you have ownership: https://code.google.com/p/chromium/codesearch#chromium/src/components/ownership/owner_settings_service.cc&sq=package:chromium&rcl=1432309542&l=76

Even if that gets you past the warning banner, setting changes will probably not get processed correctly. It's probably simpler to just fire up a VM and use that.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Mike Frysinger

unread,
May 22, 2015, 11:31:20 PM5/22/15
to or...@chromium.org, chromium-dev, chromium...@chromium.org
the first user to sign into a fresh system is the owner and that can't be changed (see Mattias' post).  do a power wash and when the device reboots, you now have the opportunity to sign in and become the owner.

-mike

--
Reply all
Reply to author
Forward
0 new messages