Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Os6.4 smb user authentication (simple configuration only)

Shulou Source: shulou.com Published: 2022-06-03 07:26:00 11月23日 Update

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]

Tags: User configuration password service file system just authentication Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Redmi Xiaomi NVidia Huawei