aports/community/shadow/useradd-defaults.patch
2021-12-20 00:40:38 +01:00

23 lines
708 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
@@ -101,12 +101,12 @@
/*
* 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_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_create_mail_spool = "yes";
+static const char *def_create_mail_spool = "no";
static const char *def_log_init = "yes";
static long def_inactive = -1;