From 9af7654a9fae3ebbe739efcd5a575dd5e679ee5a Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Fri, 13 Sep 2024 04:48:13 -0300 Subject: [PATCH] Replace chmod with -M option --- libexec/portzap/scripts/setup-user | 2 +- share/portzap/CHANGELOG | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/libexec/portzap/scripts/setup-user b/libexec/portzap/scripts/setup-user index b3cf684..f1f3c21 100755 --- a/libexec/portzap/scripts/setup-user +++ b/libexec/portzap/scripts/setup-user @@ -21,7 +21,7 @@ else -n "${user}" \ -c "portzap user" \ -m \ + -M $("${libexec}"/scripts/get-default-umask) \ -s /sbin/nologin - chmod u=rwX,g=rX,o= /home/"${user}"/ printok "${user} user created" fi diff --git a/share/portzap/CHANGELOG b/share/portzap/CHANGELOG index a0255d5..552f4c2 100644 --- a/share/portzap/CHANGELOG +++ b/share/portzap/CHANGELOG @@ -1,5 +1,12 @@ # -*- mode: org -*- +* vNEXT + +**** Replace chmod with -M switch +This change replaces chmod with the -M switch. The -M switch +is given to the ~pw useradd~ command in the ~setup-user~ +script + * v1.2.0 **** Change default clone url