Bug 365787 - Ability to modify user's groups via GUI
Summary: Ability to modify user's groups via GUI
Status: ASSIGNED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_users (show other bugs)
Version: master
Platform: Kubuntu Linux
: HI wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: usability
: 371216 419407 456028 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-07-17 17:17 UTC by Martin
Modified: 2023-04-01 04:28 UTC (History)
19 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin 2016-07-17 17:17:11 UTC
Would like to manage user's groups via GUI in system settings.

Reproducible: Always
Comment 1 Raghavendra kamath 2017-09-24 12:39:36 UTC
+1 for this feature. Right now there is no way to manage groups.
Comment 2 Paulo Fidalgo 2017-10-18 09:43:00 UTC
I think that it would be useful also!
I'm using the version 5.10.5,l and it's missing.
Comment 3 Rog131 2018-07-10 16:46:23 UTC
Same kind of, managing groups with a KDE application: port the Kuser ( https://userbase.kde.org/KUser , https://www.kde.org/applications/unmaintained/kuser ) to the Qt5/KF5. Bug 376157 - kf5 kuser - https://bugs.kde.org/show_bug.cgi?id=376157


The bug report 376157 has a workaround - https://bugs.kde.org/show_bug.cgi?id=376157#c6 .

With the Ubuntu: 
- https://www.kubuntuforums.net/showthread.php/72856-User-Management-2018
- https://forum.kde.org/viewtopic.php?f=309&t=153150
Comment 4 Nate Graham 2020-01-21 16:06:41 UTC
*** Bug 371216 has been marked as a duplicate of this bug. ***
Comment 5 David Edmundson 2020-04-02 15:14:37 UTC
Can you expand on the use cases that require group management.
Comment 6 Nate Graham 2020-04-02 15:19:30 UTC
Use cases that I have personally experienced recently:
- Needing to add my user to the "vboxusers" group to make virtualbox shared folders work
- Needing to add my user to the "sambashare" group to make samba sharing work
- Needing to add my user to the "dialout" group to make one of my 3D printers accessible over serial

In my last job, we had linux-based systems where users needed to be added to a special group and various users were *incapable* of running terminal commands to do it. When we provided documentation to let them do it via the GUI on their Ubuntu-based systems, they were able to do it.
Comment 7 Nate Graham 2020-04-15 03:50:02 UTC
*** Bug 419407 has been marked as a duplicate of this bug. ***
Comment 8 Zamundaaa 2020-06-21 12:33:24 UTC
As we're getting a new user manager UI in 5.20, wouldn't it be a good opportunity to include such a feature now?
Comment 9 Gauthier 2021-01-31 10:43:05 UTC
Yep I also miss this feature. The first two use cases Nate mentioned are valid for me too.

True that it can easily be done with a terminal but for full group management you have to remember (or look for) several commands whereas it is much more friendly with a gui.

Also group management with a gui is a pretty basic feature that has been there for years with most distro / DE, it's a little weird for Plasma in 2020/1 not to have that, unless there had been an actual good reason to remove it (like say if groups in Linux had become obsolete).

Of course it's not something users will use everyday (and many users will never use) and so it can be hidden in the System Settings GUI in an "advanced" section not to be confusing but be great if the function was there for those who do use it.
Comment 10 techxgames 2021-01-31 16:39:35 UTC
Anyone know if this feature is coming to future Plasma systems, or no progress yet?
Comment 11 Nate Graham 2021-01-31 16:48:46 UTC
It will come when someone implements it. :)
Comment 12 Gauthier 2021-01-31 20:23:19 UTC
(In reply to Nate Graham from comment #11)
> It will come when someone implements it. :)

Fair enough :) but just to clarify, does it mean there is no one working on this currently as far as we know?

Also I'd like to put out in relation to this that when creating a new user as administrator using System Settings, that user is only added to the sudo group and not to other groups like lpadmin (for printer management), plugdev, cdrom, etc. which are default groups set to the first "admin" user created when installing the system. 

So here is another "rather common" use case for needing to manage groups :). Or new admin users should be added to these groups by default to take away that use case.
Comment 13 Nate Graham 2021-02-01 16:21:23 UTC
(In reply to Gauthier from comment #12)
> Fair enough :) but just to clarify, does it mean there is no one working on
> this currently as far as we know?
Yep.


> Also I'd like to put out in relation to this that when creating a new user
> as administrator using System Settings, that user is only added to the sudo
> group and not to other groups like lpadmin (for printer management),
> plugdev, cdrom, etc. which are default groups set to the first "admin" user
> created when installing the system.
Yeah this seems like a bug in the KCM. When you create a new user, those kinds of basic group membership assignments should be done automatically.

Can you file a separate bug report to track this?
Comment 14 David Edmundson 2021-02-01 17:01:36 UTC
Freedesktop AccountService does not allow group manipulation:
https://gitlab.freedesktop.org/accountsservice/accountsservice/-/issues/64

That is a blocker to doing it inside KDE in a safe, tidy and consistent way so we should put in work upstream first.

I would be against any patch that resolved this with our own root helper.
Comment 15 techxgames 2021-02-01 17:16:09 UTC
(In reply to David Edmundson from comment #14)
> Freedesktop AccountService does not allow group manipulation:
> https://gitlab.freedesktop.org/accountsservice/accountsservice/-/issues/64
> 
> That is a blocker to doing it inside KDE in a safe, tidy and consistent way
> so we should put in work upstream first.
> 
> I would be against any patch that resolved this with our own root helper.

Doesn't look like there's much movement on that front, I think.
Comment 16 Gauthier 2021-02-02 10:24:51 UTC
(In reply to Nate Graham from comment #13)

> Can you file a separate bug report to track this?

Done :) https://bugs.kde.org/show_bug.cgi?id=432410
Comment 17 David Edmundson 2021-02-02 10:56:18 UTC
*** Bug 432410 has been marked as a duplicate of this bug. ***
Comment 18 medin 2021-04-29 04:23:00 UTC
This option is much needed because sometimes upgrade process forces user to manually manage groups which will be nightmare for average KDE users.

Upgrading brltty (6.3-1 -> 6.3-2)...
Please add your user to the brlapi group.
Comment 19 smkozasa 2021-05-12 12:12:24 UTC
This is a fundamental need. Can't believe it has not been added yet... And seems relatively simple to implement... I don't code for some 30 years, but this seems definitely worth implementing. Maybe I can catch up someday...
Comment 20 Nate Graham 2021-05-12 15:03:26 UTC
Please feel free to work on it! That would be nice.
Comment 21 techxgames 2022-04-04 20:02:34 UTC
Just wondering, any updates with this one?
Comment 22 mateMat 2022-05-13 14:20:24 UTC
Running isto this issue without having the right tool to manage user/groups.
Thanks for considering this essential tool for further development.
Comment 23 silopolis 2022-06-20 18:30:47 UTC
Supporting groups management request 1000%

Thanks in advance for your consideration

TY
J
Comment 24 Nicolas Fella 2022-06-27 23:11:14 UTC
*** Bug 456028 has been marked as a duplicate of this bug. ***
Comment 25 magni 2022-06-28 11:41:36 UTC
I uploaded the actual working code on the github so the developers can take a look

https://github.com/magnificu/KDE-Plasma-User-Group-Membership.git
Comment 26 mateMat 2022-06-28 12:01:42 UTC
(In reply to fgrigore2003 from comment #25)
> I uploaded the actual working code on the github so the developers can take
> a look
> 
> https://github.com/magnificu/KDE-Plasma-User-Group-Membership.git

Very nice! Thanks fgrigore2003
Comment 27 Nate Graham 2022-06-28 12:57:45 UTC
Cool! Would you be able to move your code to a merge request at https://invent.kde.org/plasma/plasma-workspace/-/merge_requests? That's how we collaborate on code submissions and review in KDE.
Comment 28 magni 2022-06-28 13:22:57 UTC
I can give it a try.
At the moment it is a stand alone application.

On the wiki page you can see how the actual implementation looks like.
https://github.com/magnificu/KDE-Plasma-User-Group-Membership/wiki

In order to implement it in Plasma Systems Settings the QML interface only https://invent.kde.org/plasma/plasma-workspace/-/tree/master/kcms/users needs to be updated.
The logic behind is in a class and separated from the UI.
Comment 29 Nate Graham 2022-06-28 13:24:46 UTC
UI-wise, personally I think it should be added to the Users KCM, not done as a standalone application or a different KCM. It logically belongs in the Users KCM IMO.
Comment 30 Nate Graham 2022-06-28 13:35:48 UTC
*** Bug 456028 has been marked as a duplicate of this bug. ***
Comment 31 magni 2022-06-28 13:38:14 UTC
I fully agree.
Here is were I need help since the Users KCM is done in QML, and I need an equivalent object to a "treeWidget"
Comment 32 Nate Graham 2022-06-28 15:42:26 UTC
I'm not sure we need a tree view at all. Every user's groups can be represented by a flat one-dimensional list, right? In that case there's no need for the hierarchy offered by a tree view, and we can use the common QtQuick paradigm of a ListView inside a ScrollView, with the list delegates provided by Kirigami.BasicListItem.