aports/community/shadow/useradd-defaults.patch
2023-09-04 10:05:53 +00:00

25 lines
793 B
Diff

From: Jakub Jirutka <jakub@jirutka.cz>
Date: Sun, 19 Dec 2021 21:50:00 +0100
Subject: [PATCH] Change some useradd defaults
--- a/src/useradd.c
+++ b/src/useradd.c
@@ -87,14 +87,14 @@
/*
* These defaults are used if there is no defaults file.
*/
-static gid_t def_group = 1000;
+static gid_t def_group = 100;
static const char *def_groups = "";
static const char *def_gname = "other";
static const char *def_home = "/home";
-static const char *def_shell = "/bin/bash";
+static const char *def_shell = "/bin/ash";
static const char *def_template = SKEL_DIR;
static const char *def_usrtemplate = USRSKELDIR;
-static const char *def_create_mail_spool = "yes";
+static const char *def_create_mail_spool = "no";
static const char *def_log_init = "yes";
static long def_inactive = -1;