存储分离
在172.25.254.120的Desktop中:
yum install -y samba-client.x86_64 samba-common.x86_64 samba.x86_64
systemctl start smb
netstat -antlupe | grep smb
firewall-cmd --permanent --add-service=samba
firewall-cmd --permanent --add-service=samba-client
firewall-cmd --reload
useradd westos
useradd lee
smbpasswd -a westos
smbpasswd -a lee
测试:
ssh root@172.25.254.119 -X
smbclient -L //172.25.254.120 -U westos
mount //172.25.254.120/westos /mnt -o username=westos,password=westos
cd /mnt
touch file{1..3}
查看:
cd /home/westos /默认共享文件在用户自己的家目录下
ls
对CIFS文件系统的管理
rpm -qc samba-common /查看配置文件
vim /etc/samba/smb.conf
workgroup = WESTOS