Samba服務搭建實現Windows與Linux系統之間資源共享
阿新 • • 發佈:2018-09-11
img -o common system 用戶 emctl 服務 ssd ons 1安裝服務
#yum -y install samba samba-client samba-common
查看
#rpm –qa | grep samba
修改配置文件
先備份
#cp smb.conf smb back,conf
#vi /etc/samba/smb.conf
** [global]
workgroup = MYGROUP
server string = Samba Server Version %v
log file = /var/log/samba/log.%m
max log size = 50
security = user
passdb backend = tdbsam
load printers = yes
cups options = raw
[homes]
comment = Home Directories
browseable = no
writable = yes
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
[myshare]
comment = myshare
path = /
writable = yes #systemctl restart nmb
#systemctl restart smb
#yum -y install samba samba-client samba-common
查看
#rpm –qa | grep samba
修改配置文件
先備份
#cp smb.conf smb back,conf
#vi /etc/samba/smb.conf
** [global]
workgroup = MYGROUP
server string = Samba Server Version %v
log file = /var/log/samba/log.%m
max log size = 50
security = user
passdb backend = tdbsam
load printers = yes
[homes]
comment = Home Directories
browseable = no
writable = yes
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
[myshare]
comment = myshare
path = /
writable = yes
添加用戶
添加samba用戶,samba用戶必須為linux用戶
#useradd li
#cat /etc/passwd
設置密碼確認
重啟服務
#systemctl restart smb
記住關閉兩端防火墻
查看即可
Samba服務搭建實現Windows與Linux系統之間資源共享