`

SMB客户端配置,及细力度SMB配置.

阅读更多


:arrow:





SMB客户端的配置如下:



登陆desktop0



//1.安装SMB客户端

yum -y install samba-client cifs*


//2.看一下是否能看得到SMB共享文件

smbclient -L 172.16.30.130


//3.创建本地挂载目录....无聊行为


mkdir /test

//挂载过来
mount -t cifs -o username=natasha //172.16.30.130/common /test 







//完








  细力度权限配置  , 转载自 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
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics