reynhout / chrx

Chromebook Unix
422 stars 57 forks source link

sudoers missing on Ubuntu #30

Closed Birk3n closed 7 years ago

Birk3n commented 7 years ago

When installing Ubuntu minimun/standard on Asus Chromebox CN60 there is no access to root or sudo.

reynhout commented 7 years ago

Interesting, I'll look into it.

Do you have an acceptable workaround for the moment?

Birk3n commented 7 years ago

I guess its possible to boot into recovery mode und change root pass or usermod the user.

Unfortunately i cant boot into recovery, because my keyboard isnt working in grubmenu (could be another bug)

Birk3n commented 7 years ago

Im gonna look at the log in the evening and post it

Birk3n commented 7 years ago

Sorry I'm super late. The group "lpadmin" is missing in ubuntu und thats why the user dont have any groups. Maybe do an exeption for ubuntu or check if groups exists before

reynhout commented 7 years ago

Ah, I see. The problem is that the Ubuntu metapackage you chose (minimal?), does not include the print related packages that add the lpadmin group. The standard desktop metapackage should have the group. If any groups in the specified list do not exist, the command exits without adding the user to any of them.

I've added a patch that adds the groups individually rather than all in one command. So if any individual adds fail, the others should still succeed.

Please let me know if this resolves the problem for you.

Thanks for the report!

reynhout commented 7 years ago

Closing, please re-open if problem persists.