Download Smbldap-tools User Manual (Release : 0.9.3)

Transcript
Using the smbldap-tools scripts
option definition
-a
create a Windows account. Otherwise, only a Posix account is created
-w
create a Windows Workstation account
-i
create an interdomain trust account.
See section 4.4 for more details
-u
set a uid value
-g
set a gid value
-G
add the new account to one or several supplementary groups (commaseparated)
-d
set the home directory
-s
set the login shell
-c
set the user gecos
-m
creates user’s home directory and
copies /etc/skel into it
-k
set the skeleton dir (with -m)
-P
ends by invoking smbldap-passwd to
set the user’s password
-A
user can change password ? 0 if no,
1 if yes
-B
user must change password at first
session ? 0 if no, 1 if yes
-C
set the samba home share
-D
set a letter associated with the home
share
-E
set DOS script to execute on login
-F
set the profile directory
-H
set the samba account control bits
like’[NDHTUMWSLKI]’
-N
set the canonical name of the user
-S
set the surname of the user
-M
local mailAddress (comma seperated)
-T
forward mail address (comma seperated)
Revision : 1.7
example
default value
-u 1003
-g 1003
-G 512,550
first uid available
first gid available
-d /var/user
-s /bin/ksh
-c ”admin user”
$userHomePrefix/user
$userLoginShell
$userGecos
-k /etc/skel2
$skeletonDir
-A 1
-B 1
-C \\PDC\homes
-D H:
$userSmbHome
$userHomeDrive
-E common.bat
-F \\PDC\profiles\user
-H [X]
$userScript
$userProfile
-M testuser,aliasuser
-T testuser@domain.org
Table 2: Options available to the smbldap-useradd script
page 12/30