UID < 1000 not in mate login screen

Everything about X, Gnome, KDE, ... and everything running on it

UID < 1000 not in mate login screen

Postby gurfle » 2018-05-12 02:54

My setup is Debian 9.2 (stretch).
I have found a number of discussions about this, for example
https://ubuntuforums.org/showthread.php?t=2222085 and
I have tried everything suggested there, except disabling accountsservice, which I am reluctant to do unless I can be assured that would be safe. Is that really necessary, and more importantly is it really OK to do? I see a lot of mate packages depend on the accountsservice package.

Anyway, users with UID < 100 in the mate login screen remain hidden using the following relevant sections of all the relevant configuration files mentioned in the solutions in the above links:

Code: Select all
# Min/max values for automatic uid selection in useradd
UID_MIN                  500
UID_MAX                 399999
# System accounts
#SYS_UID_MIN              100
#SYS_UID_MAX              999

# Min/max values for automatic gid selection in groupadd
GID_MIN                  500
GID_MAX                 399999
# System accounts
#SYS_GID_MIN              100
#SYS_GID_MAX              999

Code: Select all
# User accounts configuration
# NOTE: If you have AccountsService installed on your system, then LightDM will
# use this instead and these settings will be ignored
# minimum-uid = Minimum UID required to be shown in greeter
# hidden-users = Users that are not shown to the user
# hidden-shells = Shells that indicate a user cannot login
hidden-users=nobody nobody4 noaccess
hidden-shells=/bin/false /usr/sbin/nologin

Code: Select all
# FIRST_SYSTEM_[GU]ID to LAST_SYSTEM_[GU]ID inclusive is the range for UIDs
# for dynamically allocated administrative and system accounts/groups.
# Please note that system software, such as the users allocated by the base-passwd
# package, may assume that UIDs less than 100 are unallocated.


# FIRST_[GU]ID to LAST_[GU]ID inclusive is the range of UIDs of dynamically
# allocated user accounts/groups.


# The USERGROUPS variable can be either "yes" or "no".  If "yes" each
# created user will be given their own group to use as a default.  If
# "no", each created user will be placed in the group whose gid is
# USERS_GID (see below).

# If USERGROUPS is "no", then USERS_GID should be the GID of the group
# `users' (or the equivalent group) on your system.
User avatar
Posts: 336
Joined: 2009-06-04 02:08
Location: Seattle, Washington, US

Re: UID < 1000 not in mate login screen

Postby debiman » 2018-05-13 03:16

i'm sorry, is there a question?

fwiw, i think it makes sense to exclude UIDs < 1000 from graphical login screens.
i mean, you wouldn't want to log in as the 'video' user...
you can look at the numerical UIDs in /etc/passwd to understand better.
User avatar
Posts: 2209
Joined: 2013-03-12 07:18

Re: UID < 1000 not in mate login screen

Postby gurfle » 2018-05-14 03:32

Sorry, the question was implied: How to get users with UID < 1000 on the mate log in screen.

It is supposed to be possible according to the two links I gave. It is sometimes necessary to sync users on remote machines that have such UIDs. If the UIDs are not the same, file permissions on the remote systems don't work when mounted locally. That's the reason I would like this to work. You will find others having that requirement in other on-line discussions about the issue. I believe this is the main reason the UID limit is made a configurable parameter. Now if only it could be made to work!
User avatar
Posts: 336
Joined: 2009-06-04 02:08
Location: Seattle, Washington, US

Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 3 guests