Bug 346691

Summary: Missing permissions to change user attributes aren't handled properly
Product: [Applications] systemsettings Reporter: Elias Probst <mail>
Component: kcm_usersAssignee: Plasma Bugs List <plasma-bugs>
Status: CONFIRMED ---    
Severity: normal CC: bugseforuns, nate, omeritzicschwartz, pbhj
Priority: NOR    
Version: 5.17.90   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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 .