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

Example Analysis of smbpasswd Managing samba password in Linux

2025-01-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly shows you the "sample analysis of smbpasswd management samba passwords in Linux", which is easy to understand and clear. I hope it can help you solve your doubts. Let me lead you to study and study the "sample analysis of smbpasswd management samba passwords in Linux".

Smbpasswd

The smbpasswd instruction can be used to change the password of a samba user, which can change not only the user password of the local samba server, but also the user password of the remote samba server.

The scope of this command: RedHat, RHEL, Ubuntu, CentOS, Fedora, SUSE, openSUSE.

1. Grammar

Smbpasswd [options] username

2. List of options

Option

Description

-a

Add users to the samba server

-c

Specify the location of the configuration file smb.conf

-x

Delete user

-d

Stop using the specified user

-e

Activate a paused user

-D

Set debug level 0010

-n

Specifies that the user name is an empty password

-r

Specify the user password on the remote samba server

-U

Specifies the user name, used only with-r

-h

Display help information

3. Examples

1) add users

[root@localhost ~] # smbpasswd-a weijie / / add user, set password

New SMB password:

Retype new SMB password:

Added user weijie.

2) modify the user's password

[root@localhost ~] # smbpasswd weijie / / modify user password

New SMB password:

Retype new SMB password:

A Linux learning platform has been made, and a prototype has come out at present, which you can refer to and use.

Link: https://pan.baidu.com/s/1GOLVU2CbpBNGtunztVpaCQ password: n7bk

The above is all the contents of the article "sample Analysis of smbpasswd Managing samba passwords in Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

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