smbldap-useradd (8) - Linux Manuals
smbldap-useradd: Create a new user
NAME
smbldap-useradd - Create a new user
SYNOPSIS
smbldap-useradd [-abinwPW] [-c comment] [-d home_dir] [-g initial_group] [-m [-k skeleton_dir]] [-o user_ou] [-s shell] [-t time] [-u uid] [-A canchange] [-B mustchange] [-C smbhome] [-D homedrive] [-E scriptpath] [-F profilepath] [-G group[,...]] [-H acctflags] [-M mailaddr[,...]] [-N givenname] [-O mailaddr[,...]] [-S surname] [-T mailaddr[,...]] [-X encoding] [-Z name=value[,...]] loginDESCRIPTION
Creating New Users The smbldap-useradd command creates a new user account using the values specified on the command line and the default values from the system and from the configuration files (in the /etc/smbldap-tools directory).Without any option, the account created will be a Unix (Posix) account. The following options may be used to add information:
-a
The user will have a Samba account
-A
Can change password?
-b
The user is an
-B
Must change password?
-c ``comment''
The new user's comment field
-C sambaHomePath
SMB
-d home_dir
The new user will be created using home_dir for the user's login directory. The default is to append the login name to userHomePrefix
-D sambaHomeDrive
Letter associated with home share, like
-E sambaLogonScript
Relative to the
-F sambaProfilePath
Profile directory, like
-g initial_group
The group name or number of the user's initial login group. The group name must exist. A group number must refer to an already existing group. The default group number is defined in the configuration file
-G group,[...]
A list of supplementary groups that the user is also a member of. Each group is separated from the next by a comma, with no intervening whitespace. The groups are subject to the same restrictions as the group given with the -g option. The default is for the user to belong only to the initial group.
-H sambaAcctFlags
Spaces and trailing bracket are ignored
-i
Creates an interdomain trust account
-k skeletonDir
When creating the user's home directory, copy files and directories from skeletonDir rather than
-m
The user's home directory will be created if it does not exist. The files contained in skeletonDir will be copied to the home directory if the -k option is used, otherwise the files contained in
-M mail
E-mail addresses
--non-unique
Allow the creation of a user account with a duplicate
-n
Do not print banner message.
-N givenname
Family name. Defaults to username.
-o node
The user's account will be created in the specified organizational unit. It is relative to the user suffix dn
-O localMailAddress
localMailAddresses
-P
Ends by invoking smbldap-passwd.
-p
Read password from
-s shell
The name of the user's login shell. The default is to leave this field blank, which causes the system to select the default login shell.
-S surname
Defaults to username.
-t time
Wait
-T mailToAddress
Forward address
-u uid
The numerical value of the user's
-w/-W
Creates an account for a Samba machine
-X encoding
Specify input encoding for givenname and surname
-Z name=value
Specify custom