SMB client configuration, and fine-grained SMB configuration.



:arrow:





The configuration of the SMB client is as follows:



Login to desktop0



//1. Install the SMB client

yum -y install samba-client cifs*


//2. See if you can see SMB shared files

smbclient -L 172.16.30.130


//3. Create a local mount directory....boring behavior


mkdir /test

// mount it
mount -t cifs -o username=natasha //172.16.30.130/common /test







//Complete








  strength configuration, reproduced from sjRedhat.ityte.com

CREATE SMB USER , 'TOM' and 'Jerry'.

CHeck USER is Exist IN SYSTEM.

action:

1.smbpasswd -a tom

2.chwon tom:tom /var/samba/file1

3.chmod 700 / var / samba / file1


4. IN  ' smb.conf '    Set file1 and file2 Permission.

[file1]
path = /var/samba/file1
read only = no
public = no
vaild users = tom

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326486143&siteId=291194637