Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Use the smbpasswd command of linux to change the user's SMB password

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail about the use of linux's smbpasswd command to change the user's SMB password. Xiaobian thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

The smbpasswd command belongs to the samba suite, where users add and remove samba users and change passwords for users.

Because samba users are Linux-based system users, you need to create Linux system users before adding samba users, otherwise adding samba users will fail.

Syntax format: smbpasswd [parameters]

Common parameters:

-an add the user-c specified samba profile to the smbpasswd file-x remove the user from the smbpasswd file-d disable the specified user in the smbpasswd file-e activate the specified user in the smbpasswd file-n leave the specified user's password blank

Reference example

Add the samba user sarah:

[root@linuxcool] # smbpasswd-a sarah

Leave the password of the sarah user blank:

[root@linuxcool] # smbpasswd-n sarah

Activate user user1:

[root@linuxcool] # smbpasswd-e user1

Disable user user2:

[root@linuxcool] # smbpasswd-d user2

Delete user user2:

[root@linuxcool ~] # smbpasswd-x user2 about using linux's smbpasswd command to modify a user's SMB password is shared here. I hope the above content can be helpful to you and learn more. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report