Bug 475373 - Support creating users with badnames in kcm_users.
Summary: Support creating users with badnames in kcm_users.
Status: RESOLVED UPSTREAM
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_users (show other bugs)
Version: 5.27.8
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-08 14:03 UTC by Roke Julian Lockhart Beedell
Modified: 2023-10-14 00:13 UTC (History)
2 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 Roke Julian Lockhart Beedell 2023-10-08 14:03:33 UTC
SUMMARY

    I'm unable to use any of the features afforded by the `--allow-badnames` flag in the username field, such as mere capital letters, when creating an account via `kcm_users`.

STEPS TO REPRODUCE

    1. Invoke `kcmshell5 kcm_users`.
    2. Create a new user.
    3. Attempt to type capital letters in the username field.

OBSERVED RESULT

    The characters are silently discarded when typed.

EXPECTED RESULT

    I should be able to use capital letters, because other OSes have no issue with such a thing. Considering that the reason to disallow them by default is to retain compatibility with literal teletypes (per https://www.reddit.com/r/linuxquestions/comments/2ugpqa/comment/co8goaf/?utm_source=share&utm_medium=web2x&context=3).

    Consider the testament of https://www.reddit.com/r/linux/comments/znkxxv/comment/j0jaiup/?utm_source=share&utm_medium=web2x&context=3:

        I have – no joke – had a username starting with a capital letter for forever on more than one Linux machine that I used regularly. In 15+ years of doing this, I have never experienced any problems, bugs, or abnormalities that are a direct result of my username starting with a capital letter. Perhaps if you go back in time far enough you might experience some troubles, but in the modern day a username starting with a capital letter is a non-issue.

SOFTWARE/OS VERSIONS

    Operating System:   openSUSE Tumbleweed 20231005
    KDE Plasma Version: 5.27.8
    KDE Frameworks      Version: 5.110.0
    Qt Version:         5.15.10
    Kernel Version:     6.5.4-1-default (64-bit)
    Graphics Platform:  X11
    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

    https://discuss.kde.org/t/why-doesnt-the-users-kcm-allow-creating-a-user-whose-username-contains-capitals/5867?u=rokejulianlockhart
Comment 1 Nate Graham 2023-10-11 21:46:04 UTC
We delegate user creation to the accountservice library which has no option for us to invoke to change the behavior even if we wanted to; you'll have to take this up with its developers at https://gitlab.freedesktop.org/groups/accountsservice/-/issues. However I suspect I can predict their answer, and that you'll be wasting your time. :)
Comment 2 Roke Julian Lockhart Beedell 2023-10-14 00:13:43 UTC
(In reply to Nate Graham from comment #1)
> We delegate user creation to the accountservice library which has no option
> for us to invoke to change the behavior even if we wanted to; you'll have to
> take this up with its developers at
> https://gitlab.freedesktop.org/groups/accountsservice/-/issues. However I
> suspect I can predict their answer, and that you'll be wasting your time. :)

Thank you. Filed https://gitlab.freedesktop.org/accountsservice/accountsservice/-/issues/118 in the hopes that I won't be.