1. 程式人生 > 其它 >samba(step by step)

samba(step by step)

技術標籤:sambalinuxfedora經驗分享

samba(step by step)

line with '#' startd is linux CMD, some need root authorize.
install samba
# yum install samba
edit config file(or keep it default)
# vim /etc/samba/smb.config
set USER&PSWD
# smbpasswd -a A_Name
input A_Password twice
start samba service
# systemctl start smb.service
try log in...
\\xxx.xxx.xxx.xxx\homedir
xxx.xxx.xxx.xxx is linux server IP
homedir is your linux log name
...if nothing happen
allow Samba access through the firewall
# firewall-cmd -add-service=samba --permanent
# firewall-cmd --reload
set SElinux(if you want share /home/xxx)
# setsebool -P samba_enable_home_dirs on
try again...