smbpasswd

Samba

23 Oct 1998


NAME

smbpasswd - change a users SMB password


SYNOPSIS


smbpasswd [-a] [-d] [-e] [-D debug level] [-n] [-r remote_machine] [-R name resolve order] [-m] [-j DOMAIN] [-U username] [-h] [-s] username


DESCRIPTION


This program is part of the Samba suite.


The smbpasswd program has several different functions, depending on whether it is run by the root user or not. When run as a normal user it allows the user to change the password used for their SMB sessions on any machines that store SMB passwords.


By default (when run with no arguments) it will attempt to change the current users SMB password on the local machine. This is similar to the way the passwd (1) program works. smbpasswd differs from the passwd program works however in that it is not setuid root but works in a client-server mode and communicates with a locally running smbd. As a consequence in order for this to succeed the smbd daemon must be running on the local machine. On a UNIX machine the encrypted SMB passwords are usually stored in the smbpasswd (5) file.


When run by an ordinary user with no options. smbpasswd will prompt them for their old smb password and then ask them for their new password twice, to ensure that the new password was typed correctly. No passwords will be echoed on the screen whilst being typed. If you have a blank smb password (specified by the string "NO PASSWORD" in the smbpasswd file) then just press the <Enter> key when asked for your old password.


smbpasswd also can be used by a normal user to change their SMB password on remote machines, such as Windows NT Primary Domain Controllers. See the (-r) and -U options below.


When run by root, smbpasswd allows new users to be added and deleted in the smbpasswd file, as well as changes to the attributes of the user in this file to be made. When run by root, smbpasswd accesses the local smbpasswd file directly, thus enabling changes to be made even if smbd is not running.


OPTIONS