Bug 487448 - Despite being inaccessible from the user list, the Superuser initially appears in the Users KCM, but its fields' data is absent, and cannot be modified
Summary: Despite being inaccessible from the user list, the Superuser initially appear...
Status: RESOLVED NOT A BUG
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_users (other bugs)
Version First Reported In: 6.0.4
Platform: Fedora RPMs Linux
: NOR minor
Target Milestone: ---
Assignee: Plasma Bugs List
URL: https://unix.stackexchange.com/revisi...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-23 22:01 UTC by Roke Julian Lockhart Beedell
Modified: 2025-04-30 21:44 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
A Screencast Demonstrating That The User Data Cannot Be Modified (395.71 KB, video/webm)
2024-05-23 22:01 UTC, Roke Julian Lockhart Beedell
Details
Depiction of the automatically selected user modification page. (94.79 KB, image/png)
2024-05-24 11:02 UTC, Roke Julian Lockhart Beedell
Details
A Screenshot Of The Empty User Fields (45.24 KB, image/png)
2025-04-30 21:39 UTC, Roke Julian Lockhart Beedell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roke Julian Lockhart Beedell 2024-05-23 22:01:26 UTC
Created attachment 169755 [details]
A Screencast Demonstrating That The User Data Cannot Be Modified

SUMMARY
When authenticated as the superuser, the Users KCM displays the avatar selection psuedo-window, yet does not enable the user to modify the avatar for the account.

STEPS TO REPRODUCE
1.  Name the superuser `root`.
2.  Log in as the superuser via SDDM.
3.  *   1.  Invoke `systemsettings`
        2.  Navigate to "Users".
    *   Invoke `kcmshell6 kcm_users`.
4.  Attempt to select an avatar.

If you select another using this process, you shall need to switch to another KCM (or, if there are no others in System Settings, or you've used KCMShell, reinitialize the KCM/SS). This is because root is not listed amongst the user list, irrespective of the current user. I shall report this separately - check "See also".

OBSERVED RESULT
I'm unable to modify the avatar.

EXPECTED RESULT
I should be able to, since the superuser's user elements remain non-disabled (and consequently apparently modifiable).

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 40
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0
Kernel Version: 6.8.10-300.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor
Memory: 30.5 GiB of RAM
Graphics Processor: AMD Radeon RX 5700
Manufacturer: ASRock
Product Name: X670E Taichi

ADDITIONAL INFORMATION
As https://unix.stackexchange.com/revisions/609334/2#:~:text=When%20I%20go%20to%20the,I%20cannot%20change%20its%20avatar explains, others have experienced this and been confused.
Comment 1 Janet Blackquill 2024-05-23 22:32:57 UTC
The accounts service intentionally does not support modifying the root user, and the entire reason this system module exists and makes use of the AS is to remove the need for graphical usage of root. This is an unsupported usecase on multiple fronts.
Comment 2 Roke Julian Lockhart Beedell 2024-05-24 10:59:51 UTC
(In reply to Janet Blackquill from comment #1)
Comment 3 Roke Julian Lockhart Beedell 2024-05-24 11:02:32 UTC
Created attachment 169766 [details]
Depiction of the automatically selected user modification page.

(In reply to Janet Blackquill from comment #1)
In that case, this is even more important - you can't display a user modification page and then state that it's unsupported. The Users KCM needs to automatically select the top visible user account, rather than root's. I implore you to re-read the issue and, especially, view https://bugs.kde.org/attachment.cgi?id=169756&action=edit, then see https://bugs.kde.org/attachment.cgi?id=169755&action=edit.
Comment 4 Roke Julian Lockhart Beedell 2025-04-30 21:39:43 UTC
Created attachment 180829 [details]
A Screenshot Of The Empty User Fields

OBSERVED RESULT

When the KCM is invoked, the data fails to be read:

> qrc:/kcm/kcm_users/UserDetailsPage.qml:76: TypeError: Cannot read property 'realName' of null
> qrc:/kcm/kcm_users/UserDetailsPage.qml:20: TypeError: Cannot read property 'displayPrimaryName' of null
> qrc:/kcm/kcm_users/UserDetailsPage.qml:107: TypeError: Cannot read property 'realName' of null
> qrc:/kcm/kcm_users/UserDetailsPage.qml:105: TypeError: Cannot read property 'faceValid' of null
> qrc:/kcm/kcm_users/UserDetailsPage.qml:130: TypeError: Cannot read property 'realName' of null
> qrc:/kcm/kcm_users/UserDetailsPage.qml:138: TypeError: Cannot read property 'name' of null
> qrc:/kcm/kcm_users/UserDetailsPage.qml:160: TypeError: Cannot read property 'administrator' of null
> qrc:/kcm/kcm_users/UserDetailsPage.qml:151: TypeError: Cannot read property 'administrator' of null
> qrc:/kcm/kcm_users/UserDetailsPage.qml:174: TypeError: Cannot read property 'email' of null
> qrc:/kcm/kcm_users/UserDetailsPage.qml:196: TypeError: Cannot read property 'loggedIn' of null

When I invoke the avatar chooser, I see:

> qrc:/kcm/kcm_users/PicturesSheet.qml:104: TypeError: Cannot read property 'displayPrimaryName' of null

When I attempt to apply an avatar, I see:

qrc:/kcm/kcm_users/PicturesSheet.qml:237: TypeError: Cannot read property 'face' of null

SOFTWARE/OS VERSIONS

> Operating System: Fedora Linux 42  
> KDE Plasma Version: 6.3.4  
> KDE Frameworks Version: 6.13.0  
> Qt Version: 6.9.0  
> Kernel Version: 6.14.4-300.fc42.x86_64 (64-bit)  
> Graphics Platform: Wayland