admin 管理员组

文章数量: 887007

1.设置windows下的文件夹为共享模式

2、CentOS下执行 :

      a、yum install samba-client
      b、yum install nfs-utils
      c、smbclient -L //192.168.2.246 -U administrator
      d、mkdir -p /mnt/windows

      e、mount -t cifs -o username="Administrator",password="123456" //192.168.2.246/spider /mnt/windows




安装之后,/sbin/下面多了两个mount文件,分别是mount.nfs和mount.nfs4:

[root@localhost home]# ll     /sbin/mount*
-rwxr-xr-x. 1 root root  11280 Aug  4  2017 /sbin/mount.fuse
-rwsr-xr-x. 1 root root 113304 Mar  7 21:39 /sbin/mount.nfs
lrwxrwxrwx. 1 root root      9 Apr 30 23:42 /sbin/mount.nfs4 -> mount.nfs
-rwxr-xr-x. 1 root root  35813 Mar  7 21:39 /sbin/mountstats
[root@localhost home]#



 

本文标签: 共享文件夹 Windows