From: ian Date: Sun, 3 Jan 1999 17:45:15 +0000 (+0000) Subject: Better documented defaults. X-Git-Tag: branchpoint-2001-05-11-withlockex-old~4 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-utils.git;a=commitdiff_plain;h=db8e92be30a7cee18371b629abbd942ffbf49c95 Better documented defaults. --- diff --git a/sync-accounts/sync-accounts b/sync-accounts/sync-accounts index 637c175..50f7e33 100755 --- a/sync-accounts/sync-accounts +++ b/sync-accounts/sync-accounts @@ -1,5 +1,5 @@ #!/usr/bin/perl -# $Id: sync-accounts,v 1.14 1999-01-03 15:52:58 ian Exp $ +# $Id: sync-accounts,v 1.15 1999-01-03 17:45:15 ian Exp $ # usage: sync-accounts [-n] [-C] [ ...] # options: # -n do not really do anything @@ -13,13 +13,13 @@ # # Some config file directives apply globally and should appear first: # -# lockpasswd -# lockgroup +# lockpasswd [mandatory] +# lockgroup [usu. mandatory] # Specifies the lockfile suffix or pathname to use when editing # the passwd and group files. The value is a suffix if it does # not start with `/'. If set to /dev/null no locking is done. # -# logfile +# logfile [default=stdout] # Append log messages to instead of stdout. # Errors still go to stderr. # @@ -27,24 +27,24 @@ # different points in the file. The most-recently-seen value is used # at each point: # -# uidmin -# uidmax -# homebase +# uidmin [no default] +# uidmax [no default] +# homebase [default=/home] # When an account is to be created, a uid/gid will be chosen # which is one higher than the highest currently in use (except # that ids outside the range - are ignored and will # never be used). The default home directory location is # /. # -# sameuid -# nosameuid +# sameuid [this or uidmin/max req'd for creation] +# nosameuid [default] # Specifies whether uids are supposed to match. The default is # nosameuid. When sameuid is on, it is an error for the uid or # gid of a local account not to match the corresponding remote # account, and new local accounts will get the remote accounts' # ids. # -# usergroups +# usergroups [default] # nousergroups # defaultgid # Specifies whether local accounts are supposed to have @@ -63,8 +63,8 @@ # is `usergroups'. # # createuser -# createuser -# nocreateuser +# createuser [=`createuser sync-accounts-createuser'] +# nocreateuser [default] # Specifies whether accounts found on the remote host should be # created if necessary, and what command to run to do the # creation (eg, setup of home directory). The default is @@ -90,7 +90,7 @@ # the account will not be created after all. # # group -# nogroup +# nogroup [default=`nogroup *'] # Specifies that the membership of the local groups specified # should be adjusted or not adjusted whenever account data for a # particular user is copied, so that the account will be a member @@ -99,7 +99,7 @@ # glob-pattern for a particular group takes effect. The default # is `nogroups *'. # -# defaultshell +# defaultshell [default=/bin/sh] # If, when creating an account, the remote account's shell is not # available on the local system, this value will be used. The # default is /bin/sh. @@ -107,21 +107,21 @@ # Some config file directives are per-host, and should appear before # any directives which actually modify accounts: # -# host +# host [required] # Starts a host's section. This resets the per-host parameters # to the defaults. The shorthostname need not be the host's # official name in any sense. If sync-accounts is invoked with # host names on the command line they are compared with the # shorthostnames. # -# getpasswd -# getgroup +# getpasswd [required] +# getgroup [required for group sync.] # Commands to run on the local host to get the passwd, shadow and # group data for the host in question. getpasswd must be # specified if user data is to be transferred; getgroup must be # specified if group data is to be transferred. # -# getshadow +# getshadow [optional] # Specifies that shadow file data is to be used (by default, # password information is found from the output of getpasswd). # The command should emit shadow data in the format specified by