SMBLDAP...RADD.CMD(8)
okay bestie, welcome to the SMBLDAP...RADD.CMD page π
this is the smbldap-useradd manual β it's from the User Contributed Perl Documentation collection, and yes, she's an 8 (sysadmin commands only, main character energy only). sit down, grab a strawberry π, we're making users.
πΈ 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[,...]] login
π¦ DESCRIPTION π¦
π Creating New Users π
The smbldap-useradd command creates a new user account using the values you type on the command line, plus the default values that come from the system and from the configuration files (which live in the /etc/smbldap-tools directory). π«Ά
If you give it no options at all, the account created will be a plain Unix (Posix) account. The following options may be used to add information:
π« the options, bestie π«
-aβ the user gets a Samba account (and a Unix one too, obviously). β¨-Aβ can change password?0if no,1if yes. π-bβ the user is an AIX account.-Bβ must change password?0if no,1if yes. π¨-c "comment"β the new user's comment field (gecos). π£οΈ Heads up though: this option is for gecos only! If you wanna set the user's full name, use the-Nand-Soptions instead, okay?-C sambaHomePathβ the SMB home share, like'\\\\PDC-SRV\\homes'. π-d home_dirβ the new user gets created usinghome_dirfor their login directory. The default is to append the login name touserHomePrefix(defined in the configuration file) and use that as the login directory name. π-D sambaHomeDriveβ the letter associated with the home share, like'H:'. πΎ-E sambaLogonScriptβ relative to the[netlogon]share (a DOS script to execute on login, like'foo.bat'). π₯οΈ-F sambaProfilePathβ the profile directory, like'\\\\PDC-SRV\\profiles\\foo'. ποΈ-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 (defaultUserGid="513"). π―-G group,[...]β a list of supplementary groups the user is also a member of. Each group is separated from the next by a comma, with no intervening whitespace. These groups are subject to the same restrictions as the group you gave with the-goption. The default is for the user to belong only to the initial group. π«-H sambaAcctFlagsβ spaces and the trailing bracket get ignored (samba account control bits like'[NDHTUMWSLKI]'). π©-iβ creates an interdomain trust account (machine Workstation). A password will be asked for the trust account. π-k skeletonDirβ when creating the user's home directory, copy files and directories fromskeletonDirrather than/etc/skel. The-koption is only valid in conjunction with the-moption. The default is not to create the directory and not to copy any files. π§Ί-mβ the user's home directory will be created if it does not exist. The files contained inskeletonDirwill be copied to the home directory if the-koption is used, otherwise the files contained in/etc/skelwill be used instead. Any directories contained inskeletonDiror/etc/skelwill be created in the user's home directory as well. π‘-M mailβ e-mail addresses (multiple addresses are separated by commas). π§--non-uniqueβ allow the creation of a user account with a duplicate (non-unique) UID. π (yes it's giving chaos, that's the point)-nβ do not print the banner message. π€«-N givennameβ family name. Defaults tousername. π¨βπ©βπ§-o nodeβ the user's account will be created in the specified organizational unit. It is relative to the user suffix dn ($usersdn) defined in the configuration file. Ex:'ou=admin,ou=all'. π³-O localMailAddressβlocalMailAddresses(multiple addresses are separated by commas). π¬-Pβ ends by invokingsmbldap-passwd. π-pβ read password from STDIN without verification. π-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 tousername. π·οΈ-t timeβ wait<time>seconds before exiting the script when adding a computer's account. This is useful when Master/PDC and Slaves/BDCs are connected through the Internet (replication is not real time). β³-T mailToAddressβ forward address (multiple addresses are separated by commas). β‘οΈ-u uidβ the numerical value of the user's ID. This value must be unique, unless the--non-uniqueoption is used. The value must be non-negative. The default is to use the smallest ID value greater than1000and greater than every other user. π’-w/-Wβ creates an account for a Samba machine (Workstation), so that it can join asambaDomainName. Normally-wis used for adding machines through Samba, but-Wcan be used for manual addition of samba attributes. π₯οΈβ¨-X encodingβ specify input encoding for givenname and surname (defaultUTF-8). π-Z name=valueβ specify custom LDAP attributes, using comma-separatedname=valuepairs. π¨
π SEE ALSO π
useradd(1)
and that's the whole page, bestie, no notes π
this was written by the perl v5.32.1 girlies and dated 2021-11-07 β shoutout to the User Contributed Perl Documentation section for keeping it cute since forever π go make some users, you're gonna slay β¨π¦π
π¦ where this page comes from
- ubuntu jammy: smbldap-tools 0.9.11-3ubuntu1 Β· GPL-2.0-or-later
- ubuntu noble: smbldap-tools 0.9.11-3ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms