mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-14 10:32:11 +03:00
21 lines
396 B
Markdown
21 lines
396 B
Markdown
|
# 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):
|
||
|
|
||
|
`smbpasswd -a {{user_name}}`
|
||
|
|
||
|
- Modify an existing Samba user's password:
|
||
|
|
||
|
`smbpasswd {{user_name}}`
|
||
|
|
||
|
- Delete a Samba user:
|
||
|
|
||
|
`smbpasswd -x {{user_name}}`
|