void-packages/srcpkgs/lightdm/patches/minimum-uid-is-1000.patch

22 lines
777 B
Diff

--- a/common/user-list.c
+++ b/common/user-list.c
@@ -331,7 +331,7 @@ load_passwd_file (CommonUserList *user_l
if (error && !g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_NOENT))
g_warning ("Failed to load configuration from %s: %s", USER_CONFIG_FILE, error->message);
- gint minimum_uid = 500;
+ gint minimum_uid = 1000;
if (g_key_file_has_key (config, "UserList", "minimum-uid", NULL))
minimum_uid = g_key_file_get_integer (config, "UserList", "minimum-uid", NULL);
--- a/data/users.conf
+++ b/data/users.conf
@@ -9,6 +9,6 @@
# hidden-shells = Shells that indicate a user cannot login
#
[UserList]
-minimum-uid=500
+minimum-uid=1000
hidden-users=nobody nobody4 noaccess
hidden-shells=/bin/false /usr/sbin/nologin /sbin/nologin