After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 695419 - requires wheel group
requires wheel group
Status: RESOLVED FIXED
Product: gnome-initial-setup
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Initial Setup maintainer(s)
GNOME Initial Setup maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-03-08 02:12 UTC by Colin Walters
Modified: 2013-04-14 20:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Colin Walters 2013-03-08 02:12:11 UTC
priv->account_type = ACT_USER_ACCOUNT_TYPE_ADMINISTRATOR;

is hardcoded.

accountsservice in turn hardcodes a lookup for the wheel group, and bombs if it doesn't find it.

wheel is basically a Red Hat-ism; it's not in Debian.

So...we can fix this one of three ways (accountsservice, g-i-s, or gnome-ostree-integration).
Comment 1 Jasper St. Pierre (not reading bugmail) 2013-03-08 02:20:59 UTC
accountsservice seems like the proper place to fix this, but I'm not sure if it's a good idea to standardize on a wheel group or not...
Comment 2 Jasper St. Pierre (not reading bugmail) 2013-03-08 02:25:39 UTC
You can see Debian's patch here:

http://patch-tracker.debian.org/patch/series/view/accountsservice/0.6.21-8/0002-create-and-manage-groups-like-on-a-debian-system.patch
Comment 3 Colin Walters 2013-03-08 13:48:20 UTC
Frederic, any interest in upstreaming that accountsservice patch?  What if we added a --with-administrator-group configure option? 

Your patch seems to do two things conceptually:

1) s/wheel/sudo
2) Change the single useradd call with group into two separate add user, modify user steps

It'd be nice I think to keep the single call since then it has a hope of being atomic.  Do newer versions of adduser on Debian support some variant of -G?
Comment 4 Frederic Peters 2013-03-08 14:01:56 UTC
1) --with-administrator-group would certainly do
2) there is -G support in useradd but Debian recommends using the "adduser" command, and it doesn't have a similar option (it has --add_extra_groups but it gets the list of groups from adduser.conf).
Comment 5 Colin Walters 2013-03-12 14:49:50 UTC
Ok, I did 1) here:

https://bugs.freedesktop.org/show_bug.cgi?id=62235

2) I think should be a separate patch.
Comment 6 Matthias Clasen 2013-03-24 19:47:35 UTC
The wheel group is hardly a Red Hat-ism

http://en.wikipedia.org/wiki/Wheel_%28Unix_term%29
Comment 7 Jasper St. Pierre (not reading bugmail) 2013-04-14 20:53:49 UTC
I assume this is fixed in accountsservice?