欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

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

程序员文章站 2022-05-29 09:43:37
...
:(

: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



//完


:wink: 细力度权限配置 , 转载自 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
相关标签: redHat