Samba CentOS系統與CentOS系統之間的掛載方式
阿新 • • 發佈:2019-04-04
onf 分享圖片 proc tom ffffff sam art ble use
操作環境:
兩臺虛擬機,一臺安裝samba服務,一臺安裝samba客戶端。
-
yum install samba* -y //samba服務 192.168.80.100
yum install samba-client -y //samba客戶端192.168.80.101
vi /etc/samba/smb.conf [database] comment = this is test file path = /opt/database public = yes read only = yes writable = yes write list = jack create mask = 0644 directory mask = 0777
systemctl restart smb #重啟服務
smbclient -L //192.168.80.100 -U tom
yum install cifs-utils -y
[[email protected] ~]# mount -t cifs --verbose -o username=tom,password=123 //192.168.80.100/database /opt/aa
mount.cifs kernel mount options: ip=192.168.80.100,unc=\\192.168.80.100\database,user=tom,pass=********
df -hT
如果在目錄裏面創建不了文件到80.100上面輸入
chmod 777 /opt/database 因為沒有權限這條命令是給這個目錄權限全開
Samba CentOS系統與CentOS系統之間的掛載方式