Adding and Changing Passwords

You use the smbpasswd command to add, or later change, passwords. To add or change a password for a particular user, you use the smbpasswd command with the username:

# smbpasswd dylan

New SMB Password: new-password Repeat New SMB Password: new-password

Users can use smbpasswd to change their own password. The following example shows how you would use smbpasswd to change your Samba password. If the user has no Samba password, that user can just press the enter key.

$ smbpasswd

Old SMB password: old-password New SMB Password: new-password Repeat New SMB Password: new-password

Should you want to use no passwords, you can use smbpasswd with the -n option. The smb.conf file will have to have the null passwords option set to yes. Note: If you are using the older smbpasswords file, be sure that Samba is configured to use encrypted passwords. Set the encrypt passwords option to yes and specify the SMB password file.

0 0

Post a comment