summaryrefslogtreecommitdiffstats
path: root/adduser/adduser.8
diff options
context:
space:
mode:
authorMike Makonnen <mtm@FreeBSD.org>2008-01-27 10:15:36 +0000
committerMike Makonnen <mtm@FreeBSD.org>2008-01-27 10:15:36 +0000
commit8a211357c3b92d1d1f9cbf325e4b4679d73b8f6d (patch)
tree9c703c588061e60e4a5768da4d9898164030a484 /adduser/adduser.8
parent51009102002c3544f8aad1e22a9563b1da516ef5 (diff)
downloadpw-darwin-8a211357c3b92d1d1f9cbf325e4b4679d73b8f6d.tar.gz
pw-darwin-8a211357c3b92d1d1f9cbf325e4b4679d73b8f6d.tar.zst
pw-darwin-8a211357c3b92d1d1f9cbf325e4b4679d73b8f6d.zip
Add the -M command-line option, which will set home directory permissions.
Works both in interactive or batch mode. This is a heavily modified version of the patch submitted in the PR. PR: bin/105060 MFC after: 1 week
Diffstat (limited to 'adduser/adduser.8')
-rw-r--r--adduser/adduser.84
1 files changed, 4 insertions, 0 deletions
diff --git a/adduser/adduser.8 b/adduser/adduser.8
index 2df836a..fa164e4 100644
--- a/adduser/adduser.8
+++ b/adduser/adduser.8
@@ -37,6 +37,7 @@
.Op Fl CDENShq
.Op Fl G Ar groups
.Op Fl L Ar login_class
+.Op Fl M Ar mode
.Op Fl d Ar partition
.Op Fl f Ar file
.Op Fl g Ar login_group
@@ -239,6 +240,9 @@ Please note that the message
file can reference the internal variables of the
.Nm
script.
+.It Fl M Ar mode
+Create the home directory with permissions set to
+.Ar mode .
.It Fl N
Do not read the default configuration file.
.It Fl q