1SMBLDAP-USERADD.CMD(8)User Contributed Perl DocumentationSMBLDAP-USERADD.CMD(8)
2
3
4
6 smbldap-useradd - Create a new user
7
9 smbldap-useradd [-abinwPW] [-c comment] [-d home_dir] [-g
10 initial_group] [-m [-k skeleton_dir]] [-o user_ou] [-s shell] [-t time]
11 [-u uid] [-A canchange] [-B mustchange] [-C smbhome] [-D homedrive] [-E
12 scriptpath] [-F profilepath] [-G group[,...]] [-H acctflags] [-M
13 mailaddr[,...]] [-N givenname] [-O mailaddr[,...]] [-S surname] [-T
14 mailaddr[,...]] [-X encoding] [-Z name=value[,...]] login
15
17 Creating New Users The smbldap-useradd command creates a new user
18 account using the values specified on the command line and the default
19 values from the system and from the configuration files (in the
20 /etc/smbldap-tools directory).
21
22 Without any option, the account created will be a Unix (Posix) account.
23 The following options may be used to add information:
24
25 -a
26 The user will have a Samba account (and Unix).
27
28 -A
29 Can change password? 0 if no, 1 if yes.
30
31 -b
32 The user is an AIX account.
33
34 -B
35 Must change password? 0 if no, 1 if yes.
36
37 -c "comment"
38 The new user's comment field (gecos). This option is for gecos only!
39 To set as user's full name use the -N and -S options.
40
41 -C sambaHomePath
42 SMB home share, like '\\\\PDC-SRV\\homes'.
43
44 -d home_dir
45 The new user will be created using home_dir for the user's login
46 directory. The default is to append the login name to userHomePrefix
47 (defined in the configuration file) and use that as the login directory
48 name.
49
50 -D sambaHomeDrive
51 Letter associated with home share, like 'H:'.
52
53 -E sambaLogonScript
54 Relative to the [netlogon] share (DOS script to execute on login,
55 like 'foo.bat'.
56
57 -F sambaProfilePath
58 Profile directory, like '\\\\PDC-SRV\\profiles\\foo'.
59
60 -g initial_group
61 The group name or number of the user's initial login group. The
62 group name must exist. A group number must refer to an already existing
63 group. The default group number is defined in the configuration file
64 (defaultUserGid="513").
65
66 -G group,[...]
67 A list of supplementary groups that the user is also a member of.
68 Each group is separated from the next by a comma, with no intervening
69 whitespace. The groups are subject to the same restrictions as the
70 group given with the -g option. The default is for the user to belong
71 only to the initial group.
72
73 -H sambaAcctFlags
74 Spaces and trailing bracket are ignored (samba account control bits
75 like '[NDHTUMWSLKI]').
76
77 -i
78 Creates an interdomain trust account (machine Workstation). A
79 password will be asked for the trust account.
80
81 -k skeletonDir
82 When creating the user's home directory, copy files and directories
83 from skeletonDir rather than /etc/skel. The -k option is only valid in
84 conjunction with the -m option. The default is not to create the
85 directory and not to copy any files.
86
87 -m
88 The user's home directory will be created if it does not exist. The
89 files contained in skeletonDir will be copied to the home directory if
90 the -k option is used, otherwise the files contained in /etc/skel will
91 be used instead. Any directories contained in skeletonDir or /etc/skel
92 will be created in the user's home directory as well.
93
94 -M mail
95 E-mail addresses (multiple addresses are separated by commas).
96
97 --non-unique
98 Allow the creation of a user account with a duplicate (non-unique)
99 UID.
100
101 -n
102 Do not print banner message.
103
104 -N givenname
105 Family name. Defaults to username.
106
107 -o node
108 The user's account will be created in the specified organizational
109 unit. It is relative to the user suffix dn ($usersdn) defined in the
110 configuration file. Ex: 'ou=admin,ou=all'
111
112 -O localMailAddress
113 localMailAddresses (multiple addresses are separated by commas).
114
115 -P
116 Ends by invoking smbldap-passwd.
117
118 -p
119 Read password from STDIN without verification.
120
121 -s shell
122 The name of the user's login shell. The default is to leave this
123 field blank, which causes the system to select the default login shell.
124
125 -S surname
126 Defaults to username.
127
128 -t time
129 Wait <time> seconds before exiting script when adding computer's
130 account. This is useful when Master/PDC and Slaves/BDCs are connected
131 through the Internet (replication is not real time).
132
133 -T mailToAddress
134 Forward address (multiple addresses are separated by commas).
135
136 -u uid
137 The numerical value of the user's ID. This value must be unique,
138 unless the --non-unique option is used. The value must be non-negative.
139 The default is to use the smallest ID value greater than 1000 and
140 greater than every other user.
141
142 -w/-W
143 Creates an account for a Samba machine (Workstation), so that it can
144 join a sambaDomainName. Normally -w is used for adding machines through
145 Samba but -W can be used for manual addition of samba attributes.
146
147 -X encoding
148 Specify input encoding for givenname and surname (default UTF-8).
149
150 -Z name=value
151 Specify custom LDAP attributes, using comma-separated name=value
152 pairs.
153
155 useradd(1)
156
157
158
159perl v5.28.0 2018-07-15 SMBLDAP-USERADD.CMD(8)