首页 > 代码库 > cifs(common internet file system-通用网络文件系统)
cifs(common internet file system-通用网络文件系统)
- server1端操作(客户端)
1)yum install samba-client
2)smbclient -L //ip
3)smbclient //ip/sharename
[guest@server1 root]$ smbclient -L //172.25.254.2
Enter guest‘s password:
Connection to 172.25.254.2 succes
[guest@server1 root]$ smbclient //ip/sharename
Enter guest‘s password:
- server2端操作(服务端)
yum install cifs-utils -y
mount //ip/sharename /mountpoint -o username=guest
vim /etc/fstab
//ip/sharename /mountpoint cifsdefaults,username=guest 0 0
mount -a
[root@server2 ~]# mkdir /mountpoint
[root@server2 ~]# mount //172.25.254.2/sharename /mountpoint -o username=guest
Password for guest@//172.25.254.2/sharename: ******
Unable to find suitable address.
[root@server2 ~]# vim /etc/fstab
@//172.25.254.2/sharename /mountpoint cifs defaults,username=guest 0 0@
[root@server2 ~]# mount -a
Password for guest@//172.25.254.2/sharename: ******
Unable to find suitable address.
本文出自 “元小光” 博客,请务必保留此出处http://yuanxiaoguang.blog.51cto.com/11338250/1898236
cifs(common internet file system-通用网络文件系统)