HP CIFS Server 3.0k Administrator's Guide version A.02.04

-L
Runs in the local mode (must be first option).
-h
Prints a list of options that the HP CIFS Server supports.
-s
Uses stdin for password prompt. This option causes
smbpasswd to read passwords from standard input.
-c <config file> Specifies the path and file name of the smb.conf
configuration file when you want to use one other than
the default file.
-D <debug level >
Specifies the debug level. The debug level is an integer
from 0 to 10. If this parameter is not specified, the default
value is zero.
-r <remote machine name>
Allows users to specify what machine they want to change
their password on. Without this parameter, smbpasswd
defaults to the local host. The remote machine name is the
NetBIOS name of the SMB/CIFS server to contact to attempt
the password change.
-U <username [%password]>
Specifies the remote user name. This option may only be
used in conjunction with the -r option. When changing a
password on a remote machine, it allows the user to specify
the user name on that machine whose password will be
changed.
When you run smbpasswd as root, the following extra options are valid:
-a
This option specifies that the [username] following should be added to
the configured passdb backend, with the new password typed in response
to the prompt (type <Enter> to keep the old password).
-d
This option specifies that the account of the [username] following should
be disabled in the configured passdb backend.
-e
This option specifies that the account of the [username] following should
be enabled if the account was previously disabled. If the account was not
disabled, this option has no effect.
-i This option tells smbpasswd that the account being changed is an
inter-domain trust account. Currently this is used when HP CIFS Server
is configured as a Primary Domain Controller. The account contains the
info about another trusted domain.
-n
This option specifies that the username following should have their
password set to null (i.e. a blank password) in the configured passdb
backend.
-m This option tells smbpasswd that the account being changed is a machine
account. Currently this is used when HP CIFS Server is configured as a
Primary Domain Controller.
-w < password> This option specifies the password to be used with the ldap admin dn.
The password is stored in the /var/opt/samba/private/
secrets.tdb file. If the password of ldap admin dn ever changes,
the password will need to be manually updated as well. The password
is entered in the command line.
-W Changes the LDAP directory manager password. With the -W option, the
user is prompted for the password. The password is entered using stdin
and thus the clear text password never appears on the command line.
-x
This option specifies that the [username] following should be deleted
from the configured passdb backend.
HP CIFS Management Tools 191