1.檢查是否安裝有samba rpm -qa | grep "samba" 2.如果沒有安裝 yum install samba 3.找到配置文件/etc/samba/smb.conf ①不需要密碼的配置文件 [global] workgroup = WORKGROUP server string = Samba Server Version %v hosts allow = 127. 192.168.0. 192.168.1. 192.168.2. log file = /var/log/samba/log.%m max log size = 50 security = share cups options = raw [share] comment = tx share path = /home/data/txshare public = yes read only = yes writable = yes browseable = yes 注意:如果win7訪問linux上samba共享不能成功的話,提示錯誤(0x80070035 找不到網絡路徑解決方法) 請檢查開啓“TCP/IP NetBIOS Helper”(在windows服務中有),在進行測試 ②加密碼認證的配置文件 [global] workgroup = WORKGROUP server string = Samba Server Version %v hosts allow = 127. 192.168.0. 192.168.1. 192.168.2. log file = /var/log/samba/log.%m max log size = 50 security = user passdb backend = smbpasswd smb passwd file = /etc/samba/smbpasswd cups options = raw [TXshare] comment = tx share path = /home/data/txshare public = yes read only = yes writable = yes browseable = yes 添加賬號如下 useradd -s /sbin/nologin -d /dev/null tx 添加smb賬號之前,必須要添加系統賬號 smbpasswd -a tx ( smbpasswd -a 用戶名 #添加一個samba用戶 smbpasswd -d 用戶名 #禁用一個samba用戶 smbpasswd -e 用戶名 #恢復一個samba用戶 smbpasswd -x 用戶名 #刪除一個samba用戶 )
samba服務簡單配置使用
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.