Files
tldr/pages.zh/linux/pdbedit.md

21 lines
591 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# pdbedit
> 编辑 Samba 用户数据库。
> 对于简单的用户添加/删除/密码操作,您也可以使用 `smbpasswd`。
> 更多信息:<https://manned.org/pdbedit>。
- 列出所有 Samba 用户(使用详细标志以显示其设置):
`sudo pdbedit --list --verbose`
- 将现有的 Unix 用户添加到 Samba将提示输入密码
`sudo pdbedit --user {{username}} --create`
- 删除一个 Samba 用户:
`sudo pdbedit --user {{username}} --delete`
- 重置 Samba 用户的失败密码计数:
`sudo pdbedit --user {{username}} --bad-password-count-reset`