RetroFed Forum
Your home away from modern life.
how to create a "hidden" user?
Post Reply
AuthorMessage
rapchee lemmy.world rapchee@lemmy.world
Joined: 2025-02-10
(edited) Quote

i want to useradd a user that doesn't show up in the login window, is using the -r (system user) flag a good idea for that? is there another option that i can't find?

5   Original
ClipperDefiance lemmy.world ClipperDefiance@lemmy.world
Joined: 2024-06-01
#2 · Quote Reply

Depending on which display manager you use you could always just use a theme that requires typing a username rather than selecting from a list. I know there are a few SDDM themes like that.

5
CrackedLinuxISO lemmy.dbzer0.com CrackedLinuxISO@lemmy.dbzer0.com
Joined: 2024-11-17
#3 · Quote Reply

The answer will depend on which desktop environment or login manager you're using.

System users are not the right solution. The use-case for such accounts is when you want certain background services to be linked to a non-human account. Eg: Serving web requests from an http user account that only has access to nginx and the /var/www directory. By default, users created in this way don't even have a home directory.

2
rapchee lemmy.world rapchee@lemmy.world
Joined: 2025-02-10
#4 · Quote Reply

The answer will depend on which desktop environment or login manager you're using. System users are not the right solution. The use-case for such accounts is when you want certain background services to be linked to a non-human account. Eg: Serving web requests from an http user account that only has access to nginx and the /var/www directory. By default, users created in this way don't even ha...

i'm using kde with sddm i believe

1
rapchee lemmy.world rapchee@lemmy.world
Joined: 2025-02-10
#5 · Quote Reply

Depending on which display manager you use you could always just use a theme that requires typing a username rather than selecting from a list. I know there are a few SDDM themes like that.

on another pc i actually do do that, but i was wondering if there was another way

3
CrackedLinuxISO lemmy.dbzer0.com CrackedLinuxISO@lemmy.dbzer0.com
Joined: 2024-11-17
#6 · (edited) Quote Reply

i'm using kde with sddm i believe

In that case, it looks like you need to edit sddm.conf and set the HideUsers= field. Source.

2
ClipperDefiance lemmy.world ClipperDefiance@lemmy.world
Joined: 2024-06-01
#7 · Quote Reply

on another pc i actually do do that, but i was wondering if there was another way

I did some quick research and SDDM can do what you want by editing the sddm.conf file. You just have to add the username to HideUsers in the [Users] section.

3
rapchee lemmy.world rapchee@lemmy.world
Joined: 2025-02-10
#8 · Quote Reply

I did some quick research and SDDM can do what you want by editing the sddm.conf file. You just have to add the username to HideUsers in the [Users] section.

ah i haven't thought of that
thank you!

3
rapchee lemmy.world rapchee@lemmy.world
Joined: 2025-02-10
#9 · Quote Reply

In that case, it looks like you need to edit sddm.conf and set the HideUsers= field. Source.

thank you!

1
rapchee lemmy.world rapchee@lemmy.world
Joined: 2025-02-10
#10 · Quote Reply

In that case, it looks like you need to edit sddm.conf and set the HideUsers= field. Source.

is it normal that the sddm.conf is empty? it's supposed to be /etc/sddm.conf right?

1
CrackedLinuxISO lemmy.dbzer0.com CrackedLinuxISO@lemmy.dbzer0.com
Joined: 2024-11-17
#11 · (edited) Quote Reply

is it normal that the sddm.conf is empty? it's supposed to be /etc/sddm.conf right?

Your system may be reading the default config from /usr/lib/sddm/sddm.conf.d/default.conf, in which case the config file in /etc will probably be empty. You should not edit the contents of a default config.

The recommended location for sddm.conf is within the /etc/sddm.conf.d/ directory, so also check for files there.

2
Post Reply
Back to top