summaryrefslogtreecommitdiffstats
path: root/pw/pw.8
diff options
context:
space:
mode:
authorLukas Ertl <le@FreeBSD.org>2007-03-26 23:29:20 +0000
committerLukas Ertl <le@FreeBSD.org>2007-03-26 23:29:20 +0000
commit2006070a9af6d707e31fecbc4eca8df34e9997b6 (patch)
tree80ec1506f7bb1d70e8b6542c1cd55b438f8f6cf3 /pw/pw.8
parent50a7ffedcffc04d8fed26606e47ab9d53fc04125 (diff)
downloadpw-darwin-2006070a9af6d707e31fecbc4eca8df34e9997b6.tar.gz
pw-darwin-2006070a9af6d707e31fecbc4eca8df34e9997b6.tar.zst
pw-darwin-2006070a9af6d707e31fecbc4eca8df34e9997b6.zip
Introduce the new option -M to allow to set the permissions of
the user's newly created home directory. If omitted, it's derived from the current umask. PR: bin/16880, bin/83253 (partially), bin/104248 MFC in: 1 month
Diffstat (limited to 'pw/pw.8')
-rw-r--r--pw/pw.813
1 files changed, 12 insertions, 1 deletions
diff --git a/pw/pw.8 b/pw/pw.8
index f599c9a..20fea9d 100644
--- a/pw/pw.8
+++ b/pw/pw.8
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd October 9, 2006
+.Dd March 27, 2007
.Dt PW 8
.Os
.Sh NAME
@@ -46,6 +46,7 @@
.Op Fl g Ar group
.Op Fl G Ar grouplist
.Op Fl m
+.Op Fl M Ar mode
.Op Fl k Ar dir
.Op Fl w Ar method
.Op Fl s Ar shell
@@ -97,6 +98,7 @@
.Op Fl G Ar grouplist
.Op Fl l Ar name
.Op Fl m
+.Op Fl M Ar mode
.Op Fl k Ar dir
.Op Fl w Ar method
.Op Fl s Ar shell
@@ -449,6 +451,14 @@ option (see below), bearing the name of the new account.
This can be overridden by the
.Fl d
option on the command line, if desired.
+.It Fl M Ar mode
+Create the user's home directory with the specified
+.Ar mode .
+If omitted, it is derived from the parent process'
+.Xr umask 2 .
+This option is only useful in combination with the
+.Fl m
+flag.
.It Fl k Ar dir
Set the
.Ar skeleton
@@ -959,6 +969,7 @@ No base home directory configured.
.Sh SEE ALSO
.Xr chpass 1 ,
.Xr passwd 1 ,
+.Xr umask 2 ,
.Xr group 5 ,
.Xr login.conf 5 ,
.Xr passwd 5 ,