類似於網盤的檔案儲存安裝前準備:
//關閉防火牆(防火牆為iptables)
service iptables stop //臨時
// or
chkconfig iptables off //開機啟動時禁用
//關閉selinux
setenforce 0
//or
cd /etc/sysconfig/selinux =>
selinux
= disabled
安裝軟體包
yum install -y
修改檔案配置
//首先建立檔案共享的目錄
mkdir company
//給company檔案許可權
chmod 777 company
// 修改samba檔案配置
vi /etc/samba/smb.conf
//以下為爬過坑的samba配置
[global]
workgroup =
samba
security = user
map to guest = bad user
passdb backend = tdbsam
printing = cups
printcap name = cups
load printers = yes
cups options = raw
[homes]
comment = home directories
valid users =%s
,%d%w%
s browseable = no
read only = no
inherit acls = yes
[printers]
comment = all printers
path =
/var
/tmp
printable = yes
create mask =
0600
browseable = no
[print$]
comment = printer drivers
path =
/var
/lib/samba/drivers
write list = @printadmin root
force group = @printadmin
create mask =
0664
directory mask =
0775
[company]
comment=share file
path=
/company
public
=yes
writable=yes
write list=
+staff
啟動/重啟samba
service smb start/resatrt
訪問
//開啟對映網路驅動器
\\ip\company
搭建samba服務
samba 簡介 yum y install samba mkdir p samba test globol map to guest bad user 設定 test comment test 共享目錄的注釋 path samba test 共享目錄的路徑 browseable yes 共享目錄可...
搭建samba服務
你知道什麼是天才的訣竅嗎?那就是永遠只做一件事。linux中samba伺服器的搭建 使用的vmware12虛擬機器安裝的centos6.8和物理機上的windows10,實現在windows10 上訪問centos上的samba服務。一 先檢視系統中是否安裝有samba服務相關的軟體包。samba ...
samba服務搭建
檔案傳輸 smb主配置檔案 etc samba smb.conf?yum install samba samba client 要啟動smb和nmb服務 修改安全級別 security share hosts allow 允許訪問的網段 192.168.1.comment?是共享目錄的描述 path...