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

Os6.4 smb user authentication (simple configuration only)

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

1. Installation

Yum install samba-y

2. Modify the configuration

Edit the configuration file / etc/samba/smb.conf and modify it as follows:

101 security = user

279 # A publicly accessible directory, but read only, except for people in

280 # the "staff" group

281 [Public]

282 comment = Public Stuff

283 path = / public

284 public = yes

285 writable = yes

286 printable = no

287 valid users = samba

2. Add system users and passwords

Useradd-s / sbin/nologin samba

Passwd star

3. Add smb user and password

Smbpasswd-a samba

New SMB password:

Retype new SMB password:

Just restart smb.

Etc/init.d/smb restart

Shut down the SMB service: [OK]

Start the SMB service: [OK]

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

Internet Technology

Wechat

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

12
Report