2019-10-17 09:46:27 +01:00
|
|
|
# smbpasswd
|
|
|
|
|
|
|
|
> Change a user's SMB password.
|
|
|
|
> Samba users must also have a local Unix account.
|
|
|
|
|
|
|
|
- Change the current user's SMB password:
|
|
|
|
|
|
|
|
`smbpasswd`
|
|
|
|
|
|
|
|
- Add a specified user to Samba and set password(user should already exist in system):
|
|
|
|
|
2020-02-08 18:56:05 +00:00
|
|
|
`smbpasswd -a {{username}}`
|
2019-10-17 09:46:27 +01:00
|
|
|
|
|
|
|
- Modify an existing Samba user's password:
|
|
|
|
|
2020-02-08 18:56:05 +00:00
|
|
|
`smbpasswd {{username}}`
|
2019-10-17 09:46:27 +01:00
|
|
|
|
|
|
|
- Delete a Samba user:
|
|
|
|
|
2020-02-08 18:56:05 +00:00
|
|
|
`smbpasswd -x {{username}}`
|