Bug 346691 - Missing permissions to change user attributes aren't handled properly
Summary: Missing permissions to change user attributes aren't handled properly
Status: CONFIRMED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_users (show other bugs)
Version: 5.17.90
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 428537 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-04-26 08:17 UTC by Elias Probst
Modified: 2023-09-24 12:00 UTC (History)
4 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 Elias Probst 2015-04-26 08:17:43 UTC
When running the user-manager KCM in an unprivileged environment/as unprivileged user, user-manager still allows to change attributes and doesn't report any issues when clicking "Apply".

The CLI output clearly shows the issues:
log_user_manager unknown: 0
log_user_manager unknown: 132
log_user_manager unknown: 1000
log_user_manager unknown: Saving on Index:  1
log_user_manager unknown: "org.freedesktop.Accounts.Error.PermissionDenied"
log_user_manager unknown: "Authentication is required"
log_user_manager unknown: "org.freedesktop.Accounts.Error.PermissionDenied"
log_user_manager unknown: "Authentication is required"
log_user_manager unknown: "org.freedesktop.Accounts.Error.PermissionDenied"
log_user_manager unknown: "Authentication is required"
log_user_manager unknown: "org.freedesktop.Accounts.Error.PermissionDenied"
log_user_manager unknown: "Authentication is required"
log_user_manager unknown: "org.freedesktop.Accounts.Error.PermissionDenied"
log_user_manager unknown: "Authentication is required"
log_user_manager unknown: Failed Roles:  (AccountModel::Username, AccountModel::RealName, AccountModel::Email, AccountModel::Administrator, AccountModel::AutomaticLogin)


Those cases should be handled. Either there's a proper way to determine initially whether the permissions are sufficient to disable relevant UI operations or at least when applying the changes (unsucessfully) a message should be shown.

Running:
- all KF5/Plasma 5 components from git and up-to-date
- Qt 5.4.1
- AccountsService 0.6.40
- D-Bus 1.8.16
Comment 1 Patrick Silva 2020-09-27 14:36:19 UTC
Still an issue with the new Users kcm of Plasma 5.20 beta.
Comment 2 Nate Graham 2021-07-30 17:29:48 UTC
*** Bug 428537 has been marked as a duplicate of this bug. ***
Comment 3 pbhj 2023-09-24 12:00:59 UTC
Appears to be the same as https://bugs.launchpad.net/kde-workspace/+bug/1883357 .