smbpasswd

samba user and password management tool

Supplementary instructions

smbpasswd command belongs to the samba suite and can add or delete samba users and change passwords for users.

grammar

smbpasswd(options)(parameters)

Options

-a: Add users to the smbpasswd file;
-c: Specify the samba configuration file;
-x: Delete the user from the smbpasswd file;
-d: Disable the specified user in the smbpasswd file;
-e: Activate the specified user in the smbpasswd file;
-n: Leave the password of the specified user blank.

Parameters

Username: Specify the user who wants to change the SMB password.