[Pkg-shadow-devel] [Git][debian/adduser][debian/latest] 2 commits: add --no-copy-skel option
Marc Haber (@zugschlus)
gitlab at salsa.debian.org
Mon Oct 13 20:27:17 BST 2025
Marc Haber pushed to branch debian/latest at Debian / adduser
Commits:
ae36756e by Matt Barry at 2025-09-14T14:38:02+02:00
add --no-copy-skel option
Fixes: #1099633
- - - - -
1150d03a by Matt Barry at 2025-09-14T14:38:02+02:00
document --no-copy-skel
- - - - -
2 changed files:
- adduser
- doc/adduser.8
Changes:
=====================================
adduser
=====================================
@@ -132,6 +132,7 @@ our $new_lastgid = undef;
our $new_lastuid = undef;
our $new_uid = undef;
our $no_create_home = undef;
+our $no_copy_skel = undef;
our $special_home = undef;
our $special_shell = undef;
our $add_extra_groups;
@@ -188,6 +189,7 @@ GetOptions(
'lastgid=i' => \$new_lastgid,
'lastuid=i' => \$new_lastuid,
'no-create-home' => \$no_create_home,
+ 'no-copy-skel' => \$no_copy_skel,
'quiet|q' => sub { $verbose = 0; },
'shell=s' => \$special_shell,
'system' => \$found_sys_opt,
@@ -926,7 +928,7 @@ if ($action eq "adduser") {
$returnvalue = RET_INVALID_NAME_FROM_USERADD;
}
- create_homedir (1, 0); # copy skeleton data
+ create_homedir ($no_copy_skel ? 0 : 1, 0); # copy skeleton data
# useradd without -p has left the account disabled (password string is '!')
my $yesexpr = langinfo(YESEXPR());
=====================================
doc/adduser.8
=====================================
@@ -9,7 +9,7 @@
.\" 2016 Afif Elghraoui <afif at debian.org>
.\" 2016 Helge Kreutzmann <debian at helgefjell.de>
.\" 2021-2022 Jason Franklin <jason at oneway.dev>
-.\" 2022 Matt Barry <matt at hazelmollusk.org>
+.\" 2022 Matt Barry <matt at hazelmollusc.org>
.\"
.\" This is free software; see the GNU General Public License version
.\" 2 or later for copying conditions. There is NO warranty.
@@ -34,6 +34,7 @@ adduser, addgroup \- add or manipulate users or groups
.OP \-\-lastgid id
.OP \-\-lastuid id
.OP \-\-no\-create\-home
+.OP \-\-no\-copy\-skel
.OP \-\-shell shell
.OP \-\-quiet
.OP \-\-uid id
@@ -53,6 +54,7 @@ adduser, addgroup \- add or manipulate users or groups
.OP \-\-home dir
.OP \-\-ingroup group
.OP \-\-no\-create\-home
+.OP \-\-no\-copy\-skel
.OP \-\-shell shell
.OP \-\-uid id
.OP \-\-quiet
@@ -437,6 +439,12 @@ that some other mechanism will be responsible
for initializing the new user's home directory.
Valid modes: \fBadduser\fP, \fBadduser \-\-system\fP.
.TP
+.B \-\-no\-copy\-skel
+Do not populate the home directory for the new user with
+files from \fI\%/etc/skel\fP. If the home directory is
+newly created, it will be empty.
+Valid modes: \fBadduser\fP, \fBadduser \-\-system\fP.
+.TP
.B \-\-quiet
Synonymous to
.B \-\-stdoutmsglevel=warn.
View it on GitLab: https://salsa.debian.org/debian/adduser/-/compare/80583c4513a38889d6228fb225fb5ead67a20927...1150d03a7a76ea735d052e15bd3ca6478da1f290
--
View it on GitLab: https://salsa.debian.org/debian/adduser/-/compare/80583c4513a38889d6228fb225fb5ead67a20927...1150d03a7a76ea735d052e15bd3ca6478da1f290
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-shadow-devel/attachments/20251013/36c97a28/attachment-0001.htm>
More information about the Pkg-shadow-devel
mailing list