summaryrefslogtreecommitdiffstats
path: root/usr.sbin/adduser/adduser.8
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2008-01-27 10:15:36 +0000
committermtm <mtm@FreeBSD.org>2008-01-27 10:15:36 +0000
commiteae3f7d4dcdeb004fbb823f1e0c9430217fdb688 (patch)
tree769e86a979be1a6aeaa4b6d92e0fc23cdafd5d51 /usr.sbin/adduser/adduser.8
parentc2d1050fbac3414e1d700ac06dac673fbce6d181 (diff)
downloadFreeBSD-src-eae3f7d4dcdeb004fbb823f1e0c9430217fdb688.zip
FreeBSD-src-eae3f7d4dcdeb004fbb823f1e0c9430217fdb688.tar.gz
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 'usr.sbin/adduser/adduser.8')
-rw-r--r--usr.sbin/adduser/adduser.84
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/adduser/adduser.8 b/usr.sbin/adduser/adduser.8
index 2df836a..fa164e4 100644
--- a/usr.sbin/adduser/adduser.8
+++ b/usr.sbin/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
OpenPOWER on IntegriCloud