This patch upstreams a functionality that Debian/Ubuntu carry downstream patches for.
Created attachment 133135 [details] [review] Add support for a list of extra groups for admin users It's common for distributions to want to add administrator users to additional groups (e.g. lpadmin or systemd-journal); Debian and Ubuntu have patches that add this kind of functionality already. This commit adds a configure option to specify a comma-separated list of extra groups for admin users and adds support for it when both adding a new admin user and promoting an user to admin.
Comment on attachment 133135 [details] [review] Add support for a list of extra groups for admin users Review of attachment 133135 [details] [review]: ----------------------------------------------------------------- LGTM
Thanks for the review, Robert! Is there any chance you can push this for me? I don't think I have write access to this repo.
Pushed, I just wanted to check with Ray he was OK with this change first. Thanks for the patch!
Created attachment 139293 [details] [review] Fix useradd failures caused by invalid read Commit 93e2a85 added support for extra admin groups, but causes useradd failures, when adding admin accounts. It is because admin_groups are released before they are actually used, which causes that garbage is used instead of the group and useradd fails consequently with invalid group name. Do not release the memory before it is used and also fix one corresponding memory leak.
See: https://bugzilla.gnome.org/show_bug.cgi?id=795640
Whoops, good catch... the patch looks good to me.
Hello, when will this error be fixed?
hey i missed this go by in my mail and did two similar fixes yesterday: https://cgit.freedesktop.org/accountsservice/commit/?h=wip/fix-useradd&id=25437b69da82bd1dccc220f8dff516006a99471a https://cgit.freedesktop.org/accountsservice/commit/?h=wip/fix-useradd&id=c17b57e1ffc3d6086cb4bbe17ff40a091662d1be (but didn't push them to master yet) Anyway, seems good to me, please push !
(downstream bug https://bugzilla.redhat.com/show_bug.cgi?id=1575780 )
9d14729..1557846 master -> master
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.