linux samba配置共享檔案目錄
1.使用rpm -qa|grep samba 檢視是否安裝samba
samba-winbind-clients-3.5.4-68.el6.x86_64
samba-3.5.4-68.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
已安裝2.更改/etc/samba/smb.conf配置
[global]
dos charset = cp936
display charset = utf-8
workgroup = mygroup
server string = samba server version %v
log file = /var/log/samba/log.%m
max log size = 50
cups options = raw
[homes]
comment = home directories
read only = no
browseable = no
[printers]
comment = all printers
path = /var/spool/samba
printable = yes
browseable = no
[tools]
comment = tools
path = /tools
read only = no
guest ok = yes
[home]
comment = user directory
path = /home/%u
read only = no
[global]dos charset = cp936
display charset = utf-8
workgroup = mygroup
server string = samba server version %v
log file = /var/log/samba/log.%m
max log size = 50
cups options = raw
[homes]
comment = home directories
read only = no
browseable = no
[printers]
comment = all printers
path = /var/spool/samba
printable = yes
browseable = no
[tools]
comment = tools
path = /tools
read only = no
guest ok = yes
[home]
comment = user directory
path = /home/%u
read only = no
新增smb訪問使用者smbpasswd -a root
3.重啟service smb restart
4.如果windows下登入samba伺服器後無法訪問linux下共享目錄,提示沒有許可權。
則檢查a、確保linux下防火牆關閉或者是開放共享目錄許可權
b、確保samba伺服器配置檔案smb.conf設定沒有問題,可網上查閱資料看配置辦法
c、確保setlinux關閉,可以用setenforce 0命令執行。 預設的,selinux禁止網路上對samba伺服器上的共享目錄進行寫操作,即使你在smb.conf中允許了這項操作。 /usr/bin/setenforce 修改selinux的實時執行模式
setenforce 1 設定selinux 成為enforcing模式
setenforce 0 設定selinux 成為permissive模式
如果要徹底禁用selinux 需要在/etc/sysconfig/selinux中設定引數selinux=0 ,或者在/etc/grub.conf中新增這個引數
/usr/bin/setstatus -v
WINDOWS訪問SAMBA提示沒有許可權
linux samba配置共享檔案目錄 1.使用rpm qa grep samba 檢視是否安裝samba samba winbind clients 3.5.4 68.el6.x86 64 samba 3.5.4 68.el6.x86 64 samba client 3.5.4 68.el6.x8...
WINDOWS訪問SAMBA提示沒有許可權
linux samba配置共享檔案目錄 1.使用rpm qa grep samba 檢視是否安裝samba samba winbind clients 3.5.4 68.el6.x86 64 samba 3.5.4 68.el6.x86 64 samba client 3.5.4 68.el6.x8...
Windows系統下訪問虛擬機器samba目錄
1.1 設定 virtualbox可以通過共享資料夾功能,實現虛擬機器訪問真機中目錄。但反過來,真機如何訪問虛擬機器目錄呢。通過多網絡卡的功能可實現。virtualbox具有設定多網絡卡的功能,nat方式可以讓虛擬機器通過真機上網 選擇 僅主機 host only 網路 讓真機和虛擬機器在同乙個區域...