Summary: | Unable to change user password | ||
---|---|---|---|
Product: | [Applications] systemsettings | Reporter: | Dmitry Godlevskiy <jjhesrbhf> |
Component: | kcm_users | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | kde, nate, notmart, rikmills, s_chriscollins, uhhadd |
Priority: | NOR | Keywords: | regression |
Version: | 5.25.5 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/plasma-workspace/commit/b66f8019a3db00aa1e4e1c54d19f55c9cbff4d12 | Version Fixed In: | 5.24.7 |
Sentry Crash Report: |
Description
Dmitry Godlevskiy
2022-09-18 06:32:19 UTC
Your password may be too short, try to change it to the one you tried on the terminal with passwd See my report https://bugs.kde.org/show_bug.cgi?id=459430 (In reply to Marc Guhr from comment #1) > Your password may be too short, try to change it to the one you tried on the > terminal with passwd > See my report https://bugs.kde.org/show_bug.cgi?id=459430 Just tried the following: 1. Changed password using passwd 2. Tried to set it back using UI 3. Set it back using passwd Still nothing is changed from UI settings but works with passwd. So it doesn't seem to be related to the password length Can you run `systemsettings kcm_users` in a terminal window? Then clear the scrollback with Ctrl+Shift+K. Then change the password. After that, please paste any new output in the terminal window into a comment here. Thanks! (In reply to Nate Graham from comment #3) > Can you run `systemsettings kcm_users` in a terminal window? > > Then clear the scrollback with Ctrl+Shift+K. > > Then change the password. > > After that, please paste any new output in the terminal window into a > comment here. Thanks! No new output appeared. But I noticed the following error on first run, maybe it will help. file:///usr/share/kpackage/kcms/kcm_users/contents/ui/UserDetailsPage.qml:345: ReferenceError: modelData is not defined QFSFileEngine::open: No file name specified kf.coreaddons.desktopparser: Error: Failed to open "" QFileDevice::seek: IODevice is not open Darn. Thanks anyway. Also seen in Kubuntu and Debian: https://bugs.launchpad.net/systemsettings/+bug/1983245 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1016785 Also confirmed on fresh install of the KDE Neon 22.04 preview I wonder if an accountsservice regression might have caused this? I have version 0.6.55 in Fedora. What versions are affected folks using? (In reply to Nate Graham from comment #8) > I wonder if an accountsservice regression might have caused this? I have > version 0.6.55 in Fedora. What versions are affected folks using? 22.07.5 it seems. https://packages.ubuntu.com/jammy-updates/accountsservice Downgrading accountsservice and libaccountsservice0 in the Neon Jammy 22.04 preview to the 0.6.55 from Focal, does seem to fix the issue. (In reply to Rik Mills from comment #9) > Downgrading accountsservice and libaccountsservice0 in the Neon Jammy 22.04 > preview to the 0.6.55 from Focal, does seem to fix the issue. So does doing the same on Kubuntu 22.04 So it looks like there are two options here: 1. It was an unintentional regression in accountsservice that needs to be fixed 2. It was an intentional change in accountsservice (perhaps we were using the API wrong, or using deprecated API) and we need to adapt to it Someone with accountsservice experience will need to investigate or bisect it. It seems that when you try to change the password polkit doesn't ask for authentication and doesn't do anything. if you do something else before, like changing the real name, it authenticates, and from now on, changing the password will work. A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/2175 Git commit 48ccb433ca79e94ef705734d9cab599f01df97e8 by Marco Martin. Committed on 28/09/2022 at 09:33. Pushed by mart into branch 'master'. set setInteractiveAuthorizationAllowed on SetPassword call is important that the setpasswod call uses interactive authorization, otherwise will be denied, unless the user had been modified beforehand so an authorization was already granted M +8 -3 kcms/users/src/user.cpp https://invent.kde.org/plasma/plasma-workspace/commit/48ccb433ca79e94ef705734d9cab599f01df97e8 Git commit 84dcfc45b9a354827b9bbf6ae58902d04e8fe915 by Marco Martin. Committed on 28/09/2022 at 09:51. Pushed by mart into branch 'Plasma/5.25'. set setInteractiveAuthorizationAllowed on SetPassword call is important that the setpasswod call uses interactive authorization, otherwise will be denied, unless the user had been modified beforehand so an authorization was already granted M +8 -3 kcms/users/src/user.cpp https://invent.kde.org/plasma/plasma-workspace/commit/84dcfc45b9a354827b9bbf6ae58902d04e8fe915 Git commit 9043786def19940129c341a7c550aebe7406c6f5 by Marco Martin. Committed on 28/09/2022 at 09:50. Pushed by mart into branch 'Plasma/5.26'. set setInteractiveAuthorizationAllowed on SetPassword call is important that the setpasswod call uses interactive authorization, otherwise will be denied, unless the user had been modified beforehand so an authorization was already granted M +8 -3 kcms/users/src/user.cpp https://invent.kde.org/plasma/plasma-workspace/commit/9043786def19940129c341a7c550aebe7406c6f5 Git commit b66f8019a3db00aa1e4e1c54d19f55c9cbff4d12 by Nate Graham, on behalf of Marco Martin. Committed on 28/09/2022 at 13:57. Pushed by ngraham into branch 'Plasma/5.24'. set setInteractiveAuthorizationAllowed on SetPassword call is important that the setpasswod call uses interactive authorization, otherwise will be denied, unless the user had been modified beforehand so an authorization was already granted (cherry picked from commit 48ccb433ca79e94ef705734d9cab599f01df97e8) M +8 -3 kcms/users/src/user.cpp https://invent.kde.org/plasma/plasma-workspace/commit/b66f8019a3db00aa1e4e1c54d19f55c9cbff4d12 *** Bug 459430 has been marked as a duplicate of this bug. *** Still doesn't work in 5.25.5. It looks like the fix wasn't merged https://invent.kde.org/plasma/plasma-workspace/-/blob/v5.25.5/kcms/users/src/user.cpp (In reply to Dmitry Godlevskiy from comment #19) > Still doesn't work in 5.25.5. It looks like the fix wasn't merged > > https://invent.kde.org/plasma/plasma-workspace/-/blob/v5.25.5/kcms/users/src/ > user.cpp The fix was commited to the 5.25 branch, but as 5.25 will not get any more releases it is up to distros to apply the patch to 5.25.5 (In reply to Rik Mills from comment #20) > (In reply to Dmitry Godlevskiy from comment #19) > > Still doesn't work in 5.25.5. It looks like the fix wasn't merged > > > > https://invent.kde.org/plasma/plasma-workspace/-/blob/v5.25.5/kcms/users/src/ > > user.cpp > > The fix was commited to the 5.25 branch, but as 5.25 will not get any more > releases it is up to distros to apply the patch to 5.25.5 Ah okay, thanks |