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?

you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 7 months ago (5 children)

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.

  • source
  • hideshow 5 child comments
  • [–] [S] 1 point 7 months ago (4 children)

    i'm using kde with sddm i believe

  • source
  • parent
  • hideshow 4 child comments
  • [–] 2 points 7 months ago* (3 children)

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

  • source
  • parent
  • hideshow 3 child comments
  • [–] [S] 1 point 7 months ago (1 child)

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

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 7 months ago*

    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.

  • source
  • parent