centos7.5系统下进行
yum -y install samba samba-client
systemctl start smb nmb
ps -ef | grep -E ‘smb|nmb‘
netstat -tunlp | grep -E ‘smbd|nmbd‘
mkdir /mnt/data
useradd -s /sbin/nologin mt
cat /etc/passwd | grep mt
smbpasswd -a mt
[输入两遍密码123456]
chown mt.mt /mnt/data
chmod -R 777 /mnt/data
cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
vim /etc/samba/smb.conf
systemctl restart smb nmb
原文地址:https://www.cnblogs.com/tcicy/p/10014511.html
时间: 2024-11-16 22:59:39