首页 > 代码库 > RedHat 7.3 使用samba-client访问windows共享文件夹

RedHat 7.3 使用samba-client访问windows共享文件夹


1、安装samba-client、cifs-utils

# yum install samba-client

# yum install cifs-utils


2、查看windows共享文件夹

# smbclient -L //192.168.1.57 -U jia


# smbclient //192.168.1.8/software -U username%password

Domain=[DESKTOP-CC] OS=[Windows 10 Enterprise 15063] Server=[Windows 10 Enterprise 6.3]

smb: \> 


3、挂载

# mount -t cifs -o username=user01,password=88888888 //192.168.1.57/software /mnt/share/


4、开机自动挂载

//192.168.1.57/software2   /mnt/share   cifs    username=user01,password=***    0 0


本文出自 “风之谷” 博客,请务必保留此出处http://chenchunjia.blog.51cto.com/1878790/1933464

RedHat 7.3 使用samba-client访问windows共享文件夹