HP CIFS Server 3.0k Administrator's Guide version A.02.04
-c, –account-control=ARG
Specifies the user's account control property. This option
can be used while adding or modifying a user account.
Possible flags are listed below:
• N: No password required
• D: Account disabled
• H: Home directory required
• T: Temporary duplicate of other account
• U: Regular user account
• M: MNS logon user account
• W: Workstation Trust Account
• S: Server Trust Account
• L: Automatic Locking
• X: Password does not expire
• I: Domain Trust Account
-z,
–bad-password-count-reset
Resets the bad password count value.
-Z, –logon-hours-reset
<logon-hours-reset>
Resets the login hours.
–pwd-can-change-time =ARG
Sets the password-can-change-time policy value.
–pwd-must-change-time =ARG
Sets the password-must-change-time policy value (UNIX
time in seconds since 1970 if time format not provided).
-t, –password-from-stdin
Reads password from standard input.
Help Options
-?, –help
Shows help messages.
–usage
Displays brief usage message.
Common Samba Options
The following is a list of common Samba options:
-d, –debuglevel=DEBUGLEVEL
Specifies the debug level which is an integer from 0 to 10.
If this parameter is not specified, the default value is zero.
-l,
–log-basename=LOGFILEBASE
Specifies base name for log files. The extension ".progname"
will be appended (e.g. log.smbclient, log.smbd, etc...).
-s, –configfile=CONFIGFILE
Specifies the alternative Samba configuration file.
-V, –version
Prints the program version number.
Examples
Run the following command to show a list of the pdbedit options:
$ pdbedit -?
Run the following command to create a Samba account for the user cifsuser1 in the group
cifsgrp with the home directory /home/cifsuser1. The pdbedit tool will prompt for input
of an initial user password.
$ pdbedit -a cifsuser1 -g cifsgrp -h /home/cifsuser1
Run the following command to delete a Samba account for the user cifsuser2:
$ pdbedit -x cifsuser2
HP CIFS Management Tools 195