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? 0 if no, 1 if yes. πŸ‘‘
  • -b β€” the user is an AIX account.
  • -B β€” must change password? 0 if no, 1 if 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 -N and -S options instead, okay?
  • -C sambaHomePath β€” the SMB home share, like '\\\\PDC-SRV\\homes'. 🏠
  • -d home_dir β€” the new user gets created using home_dir for their login directory. The default is to append the login name to userHomePrefix (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 -g option. 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 from skeletonDir rather than /etc/skel. The -k option is only valid in conjunction with the -m option. 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 in skeletonDir will be copied to the home directory if the -k option is used, otherwise the files contained in /etc/skel will be used instead. Any directories contained in skeletonDir or /etc/skel will 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 to username. πŸ‘¨β€πŸ‘©β€πŸ‘§
  • -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 invoking smbldap-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 to username. 🏷️
  • -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-unique option is used. The value must be non-negative. The default is to use the smallest ID value greater than 1000 and greater than every other user. πŸ”’
  • -w/-W β€” creates an account for a Samba machine (Workstation), so that it can join a sambaDomainName. Normally -w is used for adding machines through Samba, but -W can be used for manual addition of samba attributes. πŸ–₯️✨
  • -X encoding β€” specify input encoding for givenname and surname (default UTF-8). 🌐
  • -Z name=value β€” specify custom LDAP attributes, using comma-separated name=value pairs. 🎨

πŸ’œ 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