LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

smbpasswd

Manage Samba user passwords and accounts

TLDR

Change current user's SMB password
$ smbpasswd
copy
Add a user to Samba and set password
$ sudo smbpasswd -a [username]
copy
Modify an existing Samba user's password
$ sudo smbpasswd [username]
copy
Delete a Samba user
$ sudo smbpasswd -x [username]
copy
Enable a Samba user
$ sudo smbpasswd -e [username]
copy
Disable a Samba user
$ sudo smbpasswd -d [username]
copy

SYNOPSIS

smbpasswd [options] [username]

DESCRIPTION

smbpasswd manages Samba user passwords. It allows users to change their own SMB password, and administrators to add, remove, or modify Samba user accounts.Samba users must have an existing local Unix account before being added. The Samba password database is separate from the system password.

PARAMETERS

-a

Add a new Samba user
-x
Delete a Samba user
-d
Disable a Samba user account
-e
Enable a previously disabled account
-n
Set null password (requires null passwords enabled)
-r _machine_
Change password on remote machine
-U _username_
Use specified username on remote machine
-s
Read password from stdin (silent mode)

INSTALL

sudo apt install samba-common-bin
copy
sudo dnf install samba-common-tools
copy
sudo apk add samba-common-tools
copy

CAVEATS

Users must exist in the Unix system before being added to Samba. If a Unix account is deleted before the Samba account, use pdbedit instead to remove the Samba entry.

SEE ALSO

pdbedit(8), samba(7)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid