.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. . \" fudge factors for nroff and troff .if n \{\ . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] \fP .\} .if t \{\ . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff .if n \{\ . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} .if t \{\ . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' .ds 8 \h'\*(#H'\(*b\h'-\*(#H' .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] .ds ae a\h'-(\w'a'u*4/10)'e .ds Ae A\h'-(\w'A'u*4/10)'E . \" corrections for vroff .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' . \" for low resolution devices (crt and lpr) .if \n(.H>23 .if \n(.V>19 \ \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} .rm #[ #] #H #V #F C .\" ======================================================================== .\" .IX Title "SMBLDAP-USERMOD.CMD 8" .TH SMBLDAP-USERMOD.CMD 8 "2021-02-02" "perl v5.32.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" smbldap\-usermod \- Modify a user account .SH "SYNOPSIS" .IX Header "SYNOPSIS" smbldap-usermod [\-c gecos] [\-d home_dir] [\-r login_name] [\-u uid] [\-g gid] [\-o] [\-G group[,...]] [\-s shell] [\-N first_name] [\-S surname] [\-P] [\-M mail[,...]] [\-T mail,[..]] [\-\-shadowExpire date/n] [\-\-shadowMax n] [\-\-shadowMin n] [\-\-shadowInactive n] [\-\-shadowWarning n] [\-L] [\-U] [\-a] [\-e expiration_date/n] [\-\-sambaExpire date/n] [\-A canchange] [\-B mustchange] [\-C smbhome] [\-D homedrive] [\-E scriptpath] [\-F profilepath] [\-H acctflags] [\-I] [\-J] [\-h] login .SH "DESCRIPTION" .IX Header "DESCRIPTION" The smbldap-usermod command modifies the system account files to reflect the changes that are specified on the command line. .SS "\s-1UNIX\s0 options" .IX Subsection "UNIX options" \&\-c, \-\-gecos gecos The new value of the user's comment field (gecos). (Don't use this to modify displayName or cn. Use \-N and \-S options combined instead). .PP \&\-d, \-\-homedir home_dir The user's new login directory. .PP \&\-r, \-\-rename new_user Allow one to rename a user. This option will update the dn attribute for the user. You can also update others attributes using the corresponding script options. .PP \&\-u, \-\-uid uid The numerical value of the user's \s-1ID.\s0 This value must be unique, unless the \-o option is used. The value must be non negative. Any files which the user owns and which are located in the directory tree rooted at the user's home directory will have the file user \s-1ID\s0 changed automatically. Files outside of the user's home directory must be altered manually. .PP \&\-o, \-\-canBeNotUnique uidNumber can be non unique .PP \&\-g, \-\-gid initial_group The group name or number of the user's new initial login group. The group name must exist. A group number must refer to an already existing group. The default group number is 1. .PP \&\-G, \-\-group [+\-]group,[...] A list of supplementary groups which 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. If the user is currently a member of a group which is not listed, the user will be removed from the group, unless the '+' or '\-' caracter is used to add or remove groups to initial ones. .PP \&\-s, \-\-shel shell The name of the user's new login shell. Setting this field to blank causes the system to select the default login shell. .PP \&\-N, \-\-givenName set the user's given name (attribute givenName). Additionally used to set the first name in displayName and cn. .PP \&\-S, \-\-surname Set the user's surname (attribute sn). Additionally used to set the last name in displayName and cn. .PP \&\-P End by invoking smbldap-passwd to change the user password (both unix and samba passwords) .PP \&\-M, \-\-mailAddresses mail,[...] mailAddresses (comma separated) .PP \&\-T, \-\-mailToAddress mail,[...] mailToAddress (forward address) (comma separated) .PP \&\-\-shadowExpire Set the expiration date for the user password. This only affect unix account. The date may be specified as either YYYY-MM-DD or 'n' days from day. The 'n' syntax also supports the extended format (#y)(#m)(#d) for years, months, and days from today. One need not specify all three, so all of the following are examples of valid input: '5y4m2d' (5 years, 4 months, and 2 days), '5y' (5 years), '5y2d' (5 years and 2 days), and '3' (3 days). This option calls the internal 'timelocal' command to set calculate the number of seconds from Junary 1 1970 to the specified date. .PP \&\-\-shadowMax User must change the password, at least, every 'n' days .PP \&\-\-shadowMin User must wait 'n' days once the password has changed before changing it again .PP \&\-\-shadowInactive Number of days of inactivity allowed for the specified user .PP \&\-\-shadowWarning User is warned that the password must be changed four days before the password expires .PP \&\-L, \-\-shadowLock Lock unix user's password. This puts a '!' in front of the encrypted password, effectively disabling the password. .PP \&\-U, \-\-shadowUnlock Unlock unix user's password. This removes the '!' in front of the encrypted password. .SS "\s-1SAMBA\s0 options" .IX Subsection "SAMBA options" \&\-a, \-\-addsambaSAMAccount Add the sambaSAMAccount objectclass to the specified user account. This allow the user to become a samba user. .PP \&\-e, \-\-expire <\s-1YYYY\-MM\-DD\s0(\s-1HH:MM:SS\s0)/n> Sets the expiration for both samba (\-\-sambaExpire) and shadow (\-\-shadowExpire). .PP \&\-\-ou node The user's account will be moved to the specified organazional unit. It is relative to the user suffix dn ($usersdn) defined in the configuration file. Ex: 'ou=admin,ou=all' .PP \&\-\-sambaExpire <\s-1YYYY\-MM\-DD\s0 HH:MM:SS/n> Set the expiration date for the user account. This only affects the samba account. The date must be in the following format: YYYY-MM-DD \s-1HH:MM:SS.\s0 The n\-days format of shadowExpire is also supported. This option uses the internal 'timelocal' command to set calculate the number of seconds from Junary 1 1970 to the specified date. .PP \&\-A, \-\-sambaPwdCanChange can change password ? 0 if no, 1 if yes .PP \&\-B, \-\-sambaPwdMustChange must change password ? 0 if no, 1 if yes .PP \&\-C, \-\-sambaHomePath path sambaHomePath (\s-1SMB\s0 home share, like '\e\e\e\ePDC\-SRV\e\ehomes') .PP \&\-D, \-\-sambaHomeDrive drive sambaHomeDrive (letter associated with home share, like 'H:') .PP \&\-E, \-\-sambaLogonScript script sambaLogonScript, relative to the [netlogon] share (\s-1DOS\s0 script to execute on login, like 'foo.bat') .PP \&\-F, \-\-sambaProfilePath path sambaProfilePath (profile directory, like '\e\e\e\ePDC\-SRV\e\eprofiles\e\efoo') .PP \&\-H, \-\-sambaAcctFlags flags sambaAcctFlags, spaces and trailing bracket are ignored (samba account control bits like '[\s-1NDHTUMWSLKI\s0]') .PP \&\-I, \-\-sambaDisable disable user. Can't be used with \-H or \-J .PP \&\-J, \-\-sambaEnable enable user. Can't be used with \-H or \-I .PP \&\-h, \-\-help print this help .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBusermod\fR\|(1)