From 094242edc6f031da14e4c137cfd49b3c527db86e Mon Sep 17 00:00:00 2001 From: Ein Verne Date: Thu, 17 Oct 2019 16:46:27 +0800 Subject: [PATCH] smbpasswd: add page (#3382) --- pages/linux/smbpasswd.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/linux/smbpasswd.md diff --git a/pages/linux/smbpasswd.md b/pages/linux/smbpasswd.md new file mode 100644 index 0000000000..7cc555edf9 --- /dev/null +++ b/pages/linux/smbpasswd.md @@ -0,0 +1,20 @@ +# 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}}`