搭建samba服务器步骤:

0》  首先执行这两条命令:

iptables -F

setenforce 0

1》  yum inatall samba -y

# rpm -qa|grep samba

2》  vim /etc/samba/smb.conf  在文件的最后增加:

[company]

comment=share file

path=/company

public=yes

writable=yes

;write list=+staff

 

Security=share   表示其他用户可以任意访问

Security=user 此时需设置:

#useradd 用户名

#smbpasswd -a 用户名 #usermod -a /sbin/nologin 用户名

 然后重启服务:#service smb restart

3》  service smb restart

相关文章:

  • 2021-12-20
  • 2021-09-13
  • 2021-10-26
  • 2021-11-19
  • 2021-08-04
  • 2021-11-20
猜你喜欢
  • 2022-12-23
  • 2021-06-23
  • 2022-12-23
  • 2021-12-06
  • 2021-12-26
  • 2021-07-28
  • 2021-11-08
相关资源
相似解决方案