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 681762 - Support a locked down mode for the user accounts panel
Support a locked down mode for the user accounts panel
Status: RESOLVED OBSOLETE
Product: gnome-control-center
Classification: Core
Component: User Accounts
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
3.10
Depends on: 650699 684444
Blocks: 681753
 
 
Reported: 2012-08-13 14:15 UTC by Stef Walter
Modified: 2021-06-09 16:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
locked down mode support (5.79 KB, patch)
2012-08-30 11:50 UTC, Ondrej Holy
rejected Details | Review
locked down mode screenshot (20.47 KB, image/png)
2012-08-30 11:51 UTC, Ondrej Holy
  Details
locked down mode support (22.64 KB, patch)
2012-09-18 14:15 UTC, Ondrej Holy
reviewed Details | Review
locked down mode support (23.16 KB, patch)
2012-09-20 08:47 UTC, Ondrej Holy
none Details | Review
locked down mode support (23.14 KB, patch)
2012-09-20 10:39 UTC, Ondrej Holy
needs-work Details | Review

Description Stef Walter 2012-08-13 14:15:40 UTC
When locked down user accounts panel is enabled:

 * The left side list is not shown, which implies no adding/removing users.
 * Not possible to change settings for any other users.
 * The panel should be called 'User Account' instead of 'User Accounts'

This lock down is conceptually separate from the abilities of the 'Account Type'.
Comment 1 Ondrej Holy 2012-08-30 11:04:12 UTC
I'm working on it.
Comment 2 Ondrej Holy 2012-08-30 11:50:19 UTC
Created attachment 222928 [details] [review]
locked down mode support
Comment 3 Ondrej Holy 2012-08-30 11:51:51 UTC
Created attachment 222929 [details]
locked down mode screenshot
Comment 4 Bastien Nocera 2012-08-30 12:03:50 UTC
"When locked down user accounts panel is enabled" which we check for how?

I was under the impression that it was really a separate panel, because we'd also need to change the desktop file/launcher icon in the overview.
Comment 5 Ondrej Holy 2012-08-30 12:52:36 UTC
I have thought that the locked down mode means simply the locked user accounts panel, doesn't it?
Comment 6 Matthias Clasen 2012-08-30 16:50:42 UTC
Looking at
https://live.gnome.org/Design/Proposals/UserIdentities
I believe what is meant with 'locked down mode' here is a scenario where the machine is enrolled in AD and local user accounts are not allowed at all.
Comment 7 Bastien Nocera 2012-09-04 18:51:45 UTC
Yep, so not the scenario handled by the patch here.
Comment 8 Bastien Nocera 2012-09-04 18:52:41 UTC
Comment on attachment 222928 [details] [review]
locked down mode support

Marking the patch as rejected, as I think we want a completely separate panel (even if there is code-sharing).
Comment 9 Ondrej Holy 2012-09-11 15:58:10 UTC
(In reply to comment #7)
> Yep, so not the scenario handled by the patch here.

Indeed, so idea is create panel for non-local users with information only about its account with no possibilities to manipulate with other users.

(In reply to comment #8)
> (From update of attachment 222928 [details] [review])
> Marking the patch as rejected, as I think we want a completely separate panel
> (even if there is code-sharing).

Ok, I'll try to do that as a separate panel with new desktop file. 

However I don't understand will be there in g-c-c afterwards two icons "User Accounts" and "User Account", or how it will be determined which icon should be shown?
Comment 10 Bastien Nocera 2012-09-11 19:23:17 UTC
(In reply to comment #9)
> (In reply to comment #7)
> > Yep, so not the scenario handled by the patch here.
> 
> Indeed, so idea is create panel for non-local users with information only about
> its account with no possibilities to manipulate with other users.

Nod.

> (In reply to comment #8)
> > (From update of attachment 222928 [details] [review] [details])
> > Marking the patch as rejected, as I think we want a completely separate panel
> > (even if there is code-sharing).
> 
> Ok, I'll try to do that as a separate panel with new desktop file. 

Cool.

> However I don't understand will be there in g-c-c afterwards two icons "User
> Accounts" and "User Account", or how it will be determined which icon should be
> shown?

I really don't know, we'll have to ask Stef about this. I think that it's not very important as long as bug 681753 is opened.
Comment 11 Stef Walter 2012-09-17 12:34:03 UTC
(In reply to comment #10)
> > However I don't understand will be there in g-c-c afterwards two icons "User
> > Accounts" and "User Account", or how it will be determined which icon should be
> > shown?
> 
> I really don't know, we'll have to ask Stef about this. I think that it's not
> very important as long as bug 681753 is opened.

It'll be determined by a dconf setting and the Lockdown (ie: pessulus) editor. But it's not very firm yet. This is so than Enterprise administrators can avoid confusing users with unnecessary options in a workstation style environment.
Comment 12 Ondrej Holy 2012-09-18 14:15:30 UTC
Created attachment 224634 [details] [review]
locked down mode support

The patch add separate user account panel with new desktop file for lock down mode. Almost all functionality is removed according mockup. However hiding mechanism is missing.
Comment 13 Ondrej Holy 2012-09-18 14:19:49 UTC
(In reply to comment #11)
> (In reply to comment #10)
> > > However I don't understand will be there in g-c-c afterwards two icons "User
> > > Accounts" and "User Account", or how it will be determined which icon should be
> > > shown?
> > 
> > I really don't know, we'll have to ask Stef about this. I think that it's not
> > very important as long as bug 681753 is opened.
> 
> It'll be determined by a dconf setting and the Lockdown (ie: pessulus) editor.
> But it's not very firm yet. This is so than Enterprise administrators can avoid
> confusing users with unnecessary options in a workstation style environment.

Does the dconf setting exists for the lockdown yet?

What is the best way to hide unnecessary desktop file in gnome-control-center and also in gnome-shell?
Comment 14 Stef Walter 2012-09-18 14:47:38 UTC
(In reply to comment #13)
> Does the dconf setting exists for the lockdown yet?

I don't think so. Usually the various modules (like gnome-control-center) define dconf settings, than dconf lockdown stuff can then drive.

> What is the best way to hide unnecessary desktop file in gnome-control-center
> and also in gnome-shell?

No idea here.
Comment 15 Bastien Nocera 2012-09-18 21:40:34 UTC
Review of attachment 224634 [details] [review]:

Rest looks alright. Obviously missing the way to hide it still.

::: panels/user-accounts/Makefile.am
@@ +76,3 @@
+	um-user-panel.c			\
+	um-user-module.c		\
+	$(COMMON_SOURCES)

Use a noinst_LTLIBRARIES = ... to define the common parts.
Then link each of the 2 versions to that library.

That saves us having to compile I don't know how many source files twice.

::: panels/user-accounts/data/gnome-user-account-panel.desktop.in.in
@@ +1,3 @@
+[Desktop Entry]
+_Name=User Account
+_Comment=Edit your account

Can you actually edit anything here?
Comment 16 Bastien Nocera 2012-09-18 21:44:02 UTC
(In reply to comment #13)
> (In reply to comment #11)
> > (In reply to comment #10)
> > > > However I don't understand will be there in g-c-c afterwards two icons "User
> > > > Accounts" and "User Account", or how it will be determined which icon should be
> > > > shown?
> > > 
> > > I really don't know, we'll have to ask Stef about this. I think that it's not
> > > very important as long as bug 681753 is opened.
> > 
> > It'll be determined by a dconf setting and the Lockdown (ie: pessulus) editor.
> > But it's not very firm yet. This is so than Enterprise administrators can avoid
> > confusing users with unnecessary options in a workstation style environment.
> 
> Does the dconf setting exists for the lockdown yet?

Nope. File a bug (with a patch ;) against gsettings-desktop-schemas.

> What is the best way to hide unnecessary desktop file in gnome-control-center
> and also in gnome-shell?

We don't have a way right now. See bug 650699. I'll add comments there.
Comment 17 Ondrej Holy 2012-09-20 08:47:50 UTC
Created attachment 224814 [details] [review]
locked down mode support

The library with common source code has been added.
Comment 18 Ondrej Holy 2012-09-20 08:55:09 UTC
(In reply to comment #15)
> Review of attachment 224634 [details] [review]:
> ::: panels/user-accounts/data/gnome-user-account-panel.desktop.in.in
> @@ +1,3 @@
> +[Desktop Entry]
> +_Name=User Account
> +_Comment=Edit your account
> 
> Can you actually edit anything here?

Why I can't? It is a newly added desktop file for the lockdown mode. 

diff data/gnome-user-accounts-panel.desktop.in.in data/gnome-user-account-panel.desktop.in.in
2,4c2,4
< _Name=User Accounts
< _Comment=Add or remove users
< Exec=gnome-control-center user-accounts
---
> _Name=User Account
> _Comment=Edit your account
> Exec=gnome-control-center user-account
15c15
< X-GNOME-Settings-Panel=user-accounts
---
> X-GNOME-Settings-Panel=user-account
Comment 19 Ondrej Holy 2012-09-20 09:06:28 UTC
(In reply to comment #16)
> (In reply to comment #13)
> > (In reply to comment #11)
> > > (In reply to comment #10)
> > > > > However I don't understand will be there in g-c-c afterwards two icons "User
> > > > > Accounts" and "User Account", or how it will be determined which icon should be
> > > > > shown?
> > > > 
> > > > I really don't know, we'll have to ask Stef about this. I think that it's not
> > > > very important as long as bug 681753 is opened.
> > > 
> > > It'll be determined by a dconf setting and the Lockdown (ie: pessulus) editor.
> > > But it's not very firm yet. This is so than Enterprise administrators can avoid
> > > confusing users with unnecessary options in a workstation style environment.
> > 
> > Does the dconf setting exists for the lockdown yet?
> 
> Nope. File a bug (with a patch ;) against gsettings-desktop-schemas.

Ok, I'll file a bug.
 
> > What is the best way to hide unnecessary desktop file in gnome-control-center
> > and also in gnome-shell?
> 
> We don't have a way right now. See bug 650699. I'll add comments there.

Thanks, I'll see there.
Comment 20 Bastien Nocera 2012-09-20 09:13:58 UTC
(In reply to comment #18)
> (In reply to comment #15)
> > Review of attachment 224634 [details] [review] [details]:
> > ::: panels/user-accounts/data/gnome-user-account-panel.desktop.in.in
> > @@ +1,3 @@
> > +[Desktop Entry]
> > +_Name=User Account
> > +_Comment=Edit your account
> > 
> > Can you actually edit anything here?
> 
> Why I can't? It is a newly added desktop file for the lockdown mode. 

What's editable? The avatar? The password? You might want to change the Comment line to be more precise.
Comment 21 Ondrej Holy 2012-09-20 09:38:37 UTC
(In reply to comment #20)
> (In reply to comment #18)
> > (In reply to comment #15)
> > > Review of attachment 224634 [details] [review] [details] [details]:
> > > ::: panels/user-accounts/data/gnome-user-account-panel.desktop.in.in
> > > @@ +1,3 @@
> > > +[Desktop Entry]
> > > +_Name=User Account
> > > +_Comment=Edit your account
> > > 
> > > Can you actually edit anything here?
> > 
> > Why I can't? It is a newly added desktop file for the lockdown mode. 
> 
> What's editable? The avatar? The password? You might want to change the Comment
> line to be more precise.

Sorry for misunderstanding, I'll fix the comment line. 

I have removed almost all functionality as it is in the mockup https://live.gnome.org/Design/Proposals/UserIdentities and the first comment https://bugzilla.gnome.org/show_bug.cgi?id=681762#c0 excepted password changing, or should I have left there any other (eg. avatar)?
Comment 22 Ondrej Holy 2012-09-20 09:40:05 UTC
(In reply to comment #16)
> (In reply to comment #13)
> > (In reply to comment #11)
> > > (In reply to comment #10)
> > > > > However I don't understand will be there in g-c-c afterwards two icons "User
> > > > > Accounts" and "User Account", or how it will be determined which icon should be
> > > > > shown?
> > > > 
> > > > I really don't know, we'll have to ask Stef about this. I think that it's not
> > > > very important as long as bug 681753 is opened.
> > > 
> > > It'll be determined by a dconf setting and the Lockdown (ie: pessulus) editor.
> > > But it's not very firm yet. This is so than Enterprise administrators can avoid
> > > confusing users with unnecessary options in a workstation style environment.
> > 
> > Does the dconf setting exists for the lockdown yet?
> 
> Nope. File a bug (with a patch ;) against gsettings-desktop-schemas.

It's there:

https://bugzilla.gnome.org/show_bug.cgi?id=684444
Comment 23 Ondrej Holy 2012-09-20 10:39:35 UTC
Created attachment 224825 [details] [review]
locked down mode support

Attached patch with more precious comment line in the desktop file.
Comment 24 Georges Basile Stavracas Neto 2018-01-23 03:04:13 UTC
Review of attachment 224825 [details] [review]:

Thanks Ondrej. I'm not sure this patch is desired anymore, but it doesn't apply on master anyway, so I'm marking the patch as needs-work.
Comment 25 André Klapper 2021-06-09 16:25:19 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new bug report at
  https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/

Thank you for your understanding and your help.