X-Git-Url: https://git.cameronkatri.com/pw-darwin.git/blobdiff_plain/7b0714b697725f31b2bdae4b107edc58e4a10537..274a62ea0a485df46e89a7f068f87b3b79fdee66:/adduser/adduser.8 diff --git a/adduser/adduser.8 b/adduser/adduser.8 index deba8e9..0f52c3b 100644 --- a/adduser/adduser.8 +++ b/adduser/adduser.8 @@ -22,86 +22,81 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $Id: adduser.8,v 1.26 1998/08/17 18:50:29 wosch Exp $ +.\" $FreeBSD$ .\" .Dd January 9, 1995 .Dt ADDUSER 8 -.Os FreeBSD 2.1 +.Os .Sh NAME .Nm adduser .Nd command for adding new users .Sh SYNOPSIS -.Nm adduser +.Nm +.Bk -words .Op Fl check_only -.br .Op Fl class Ar login_class -.br .Op Fl config_create -.br .Op Fl dotdir Ar dotdir -.br .Op Fl group Ar login_group -.br .Op Fl h | help -.br .Op Fl home Ar home -.br .Op Fl message Ar message_file -.br .Op Fl noconfig -.br .Op Fl shell Ar shell -.br .Op Fl s | silent | q | quiet -.br .Op Fl uid Ar uid_start -.br .Op Fl v | verbose +.Ek .Sh DESCRIPTION -.Nm Adduser -is a simple program for adding new users. Adduser checks -the passwd, group and shell databases. It creates passwd/group entries, +The +.Nm +utility is a simple program for adding new users. It checks +the passwd, group and shell databases. +It creates passwd/group entries, .Ev HOME directory, dotfiles and sends the new user a welcome message. .Sh RESTRICTIONS .Bl -tag -width Ds -compact .It Sy username -Login name. May contain only lowercase characters or digits. Maximum length -is 16 characters (see +Login name. +May contain only lowercase characters or digits. +Maximum length +is 16 characters (see .Xr setlogin 2 -BUGS section). -The reasons for this limit are "Historical". +BUGS section). +The reasons for this limit are "Historical". Given that people have traditionally wanted to break this limit for aesthetic reasons, it's never been of great importance to break such a basic fundamental parameter in UNIX. -You can change -.Dv UT_NAMESIZE -in +You can change +.Dv UT_NAMESIZE +in .Pa /usr/include/utmp.h and recompile the world; people have done this and it works, but you will have problems with any precompiled programs, or source that assumes the 8-character -name limit and NIS. The NIS protocol mandates an 8-character username. +name limit and NIS. +The NIS protocol mandates an 8-character username. If you need a longer login name for e-mail addresses, you can define an alias in -.Pa /etc/aliases . +.Pa /etc/mail/aliases . .It Sy fullname -Firstname and surname. +Firstname and surname. The -.Ql Pa \: +.Ql Pa \&: character is not allowed. .It Sy shell Only valid shells from the shell database or sliplogin and pppd .It Sy uid Automatically generated or your choice, must be less than 32000. .It Sy gid/login group -Your choice or automatically generated. +Your choice or automatically generated. .It Sy password -If not empty, password is encoded with +If not empty, password is encoded with .Xr crypt 3 . .El .Sh UNIQUE GROUPS -Perhaps you're missing what +Perhaps you're missing what .Em can be done with this scheme that falls apart with most other schemes. With each user in his/her own group the user can @@ -129,76 +124,80 @@ Parse command line options. .El .Sh OPTIONS .Bl -tag -width Ds -.It Sy -check_only +.It Fl check_only Check /etc/passwd, /etc/group, /etc/shells and exit. -.It Sy -class Ar login_class +.It Fl class Ar login_class Set default login class. -.It Sy -config_create -Create new configuration and message file and exit. -.It Sy -dotdir Ar directory -Copy files from -.Ar directory +.It Fl config_create +Create new configuration and message file and exit. +.It Fl dotdir Ar directory +Copy files from +.Ar directory into the .Ev HOME directory of new users, .Ql Pa dot.foo -will be renamed to +will be renamed to .Ql Pa .foo . Don't copy files if -.Ar directory +.Ar directory specified is equal to .Ar no . For security make all files writable and readable for owner, don't allow group or world to write files and allow only owner -to read/execute/write -.Pa .rhost , -.Pa .Xauthority , -.Pa .kermrc , -.Pa .netrc , +to read/execute/write +.Pa .rhost , +.Pa .Xauthority , +.Pa .kermrc , +.Pa .netrc , .Pa Mail , -.Pa prv , -.Pa iscreen , +.Pa prv , +.Pa iscreen , .Pa term . -.It Sy -group Ar login_group -Login group. +.It Fl group Ar login_group +Login group. .Ar USER means that the username is to be used as login group. -.It Sy -help,-h,-? +.It Fl help , h , \&? Print a summary of options and exit. -.It Sy -home Ar partition +.It Fl home Ar partition Default home partition where all users located. -.It Sy -message Ar file +.It Fl message Ar file Send new users a welcome message from .Ar file . Specifying a value of .Ar no for -.Ar file +.Ar file causes no message to be sent to new users. -.It Sy -noconfig +.It Fl noconfig Do not read the default configuration file. -.It Sy -shell Ar shell +.It Fl shell Ar shell Default shell for new users. -.It Sy -silent,-s,-quiet,-q -Few warnings, questions, bug reports. -.It Sy -uid Ar uid -Use uid's from +.It Fl silent , s , quiet , q +Few warnings, questions, bug reports. +.It Fl uid Ar uid +Use uid's from .Ar uid on up. -.It Sy -verbose,-v -Many warnings, questions. Recommended for novice users. +.It Fl verbose , v +Many warnings, questions. +Recommended for novice users. +.El .Sh FORMATS .Bl -tag -width Ds -compact .Ql Pa # -is a comment. +is a comment. .It Sy configuration file -.Nm Adduser -reads and writes this file. -See +The +.Nm +utility reads and writes this file. +See .Pa /etc/adduser.conf for more details. .It Sy message file -Eval variables in this file. See +Eval variables in this file. +See .Pa /etc/adduser.message for more details. @@ -227,7 +226,6 @@ logfile for adduser .Xr finger 1 , .Xr passwd 1 , .Xr setlogin 2 , -.Xr yp 4 , .Xr aliases 5 , .Xr group 5 , .Xr login.conf 5 , @@ -236,10 +234,11 @@ logfile for adduser .Xr pw 8 , .Xr pwd_mkdb 8 , .Xr rmuser 8 , -.Xr vipw 8 +.Xr vipw 8 , +.Xr yp 8 .\" .Sh BUGS .Sh HISTORY The .Nm -command appeared in +utility appeared in .Fx 2.1 .