pdbedit, smbpassword: add page & improve comments (#7545)
This commit is contained in:
@@ -1,20 +1,21 @@
|
||||
# smbpasswd
|
||||
|
||||
> Change a user's SMB password.
|
||||
> Samba users must also have a local Unix account.
|
||||
> Add/remove a Samba user or change its password.
|
||||
> Samba users must have an existing local Unix account.
|
||||
> More information: <https://manned.org/smbpasswd.8>.
|
||||
|
||||
- Change the current user's SMB password:
|
||||
|
||||
`smbpasswd`
|
||||
|
||||
- Add a specified user to Samba and set password(user should already exist in system):
|
||||
- Add a specified user to Samba and set password (user should already exist in system):
|
||||
|
||||
`smbpasswd -a {{username}}`
|
||||
`sudo smbpasswd -a {{username}}`
|
||||
|
||||
- Modify an existing Samba user's password:
|
||||
|
||||
`smbpasswd {{username}}`
|
||||
`sudo smbpasswd {{username}}`
|
||||
|
||||
- Delete a Samba user:
|
||||
- Delete a Samba user (use `pdbedit` instead if the Unix account has been deleted):
|
||||
|
||||
`smbpasswd -x {{username}}`
|
||||
`sudo smbpasswd -x {{username}}`
|
||||
|
Reference in New Issue
Block a user