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

username
Specifies the user name for all of the root only options to operate on. Only
root can specify this parameter, as only root has the permissions needed
to modify attributes directly in the SMB password database.
Examples
Run the following command to create a Samba account for the user cifsuser1:
$ smbpasswd -a cifsuser1
Run the following command to delete a Samba account for the user cifsuser2:
$ smbpasswd -x cifsuser2
Run the following command to change the LDAP directory manager password:
$ smbpasswd -w <password of the LDAP Directory Manager>
For example, the following command changes the credentials of the LDAP directory manager:
$ smbpasswd -w dmpasswd
or you can run the smbpasswd -W command to change the LDAP directory manager password
as follows:
$ smbpasswd -W
With the -W option, the user is prompted for the password. The password is entered using stdin.
Syncsmbpasswd
You can use the syncsmbpasswd tool is to synchronize the CIFS Server Samba user list with
the UNIX or POSIX user list regardless of user database or CIFS authentication backend. When
executed, syncsmbpasswd will add (without password) Samba user entries not already present
corresponding to UNIX or POSIX user entries (based on listusers(1)). See the syncsmbpasswd
(1) man page for details.
If you set the passdb backend parameter in smb.conf to ldapsam:ldap://<ldap server
name>, this tool adds Samba user entries that correspond to the existing POSIX user accounts
to the LDAP directory server.
Options
None.
There are no options for this command.
Example
For example, use the following procedures to synchronize Samba user accounts with available
POSIX user accounts in /etc/passwd to the smbpasswd file:
1. Configure the passdb backend parameter in smb.conf:
$ passdb backend = smbpasswd
2. Run the following command:
$ syncsmbpasswd
Pdbedit
You can use the pdbedit tool to manage the Samba user accounts stored in the SAM database
(database of Samba users). You must be logged in as the root user to run this tool.
The pdbedit tool can be used to perform the following operations:
Add, remove or modify user accounts.
List user accounts.
Migrate user accounts.
192 Tool Reference