X-Git-Url: https://git.cameronkatri.com/pw-darwin.git/blobdiff_plain/68c3f686a6358e0c20375fead57fe1607f23393f..e45447638192b907eceaf6f3a0d75e8b6365945c:/adduser/adduser.8 diff --git a/adduser/adduser.8 b/adduser/adduser.8 index 018c164..03f7e34 100644 --- a/adduser/adduser.8 +++ b/adduser/adduser.8 @@ -26,7 +26,7 @@ .\" .\" $FreeBSD$ .\" -.Dd June 7, 2006 +.Dd March 16, 2008 .Dt ADDUSER 8 .Os .Sh NAME @@ -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 @@ -66,8 +67,8 @@ The user name is restricted to whatever .Xr pw 8 will accept. Generally this means it -may contain only lowercase characters or digits but cannot begin with -.Sq Fl +may contain only lowercase characters or digits but cannot begin with the +.Ql - character. Maximum length is 16 characters. @@ -205,14 +206,14 @@ message to standard error and move to the next account. The format of the input file is described below. .It Fl g Ar login_group -Normaly, +Normally, if no login group is specified, it is assumed to be the same as the username. This option makes .Ar login_group the default. .It Fl G Ar groups -Additional groups. +Space-separated list of additional groups. This option allows the user to specify additional groups to add users to. The user is a member of these groups in addition to their login group. .It Fl h @@ -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 @@ -392,7 +396,7 @@ and this field is empty, its contents will be used as a password. This field will be ignored if the -.Fl p +.Fl w option is used with a .Cm no or @@ -465,12 +469,12 @@ This means that shell commands can also be embedded in the message file. The .Nm utility attempts to mitigate the possibility of an attacker using this -feature by refusing to evaluate the file if it is not owned and writeable +feature by refusing to evaluate the file if it is not owned and writable only by the root user. In addition, shell special characters and operators will have to be escaped when used in the message file. .Pp -Also, password ageing and account expiry times are currently setable +Also, password ageing and account expiry times are currently settable only in batch mode or when specified in .Pa /etc/adduser.conf . The user should be able to set them in interactive mode as well.