1. 程式人生 > >CentOS 7下Samba服務安裝與配置詳解

CentOS 7下Samba服務安裝與配置詳解

chown grep -E add -s login mkdir entos passwd 密碼

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

CentOS 7下Samba服務安裝與配置詳解