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
时间: 2024-10-03 14:03:40