zzc666

安装samaba        yum install samba samba-client samba-swat

 cd /etc/samba

vim smb.conf

相关的配置

[share]
  comment = Share
  path = /www/wwwroot/zzc/share
  available = yes
  browseable = yes
  public = no
  writable = yes

其中path参数是你要共享的目录,public为no则不允许匿名访问,writable参数是可读写,browseable是该共享目录可浏览,comment是描述,可随便写。

sudo useradd zzc 创建用户

sudo smbpasswd -a zzc 密码

创建用户,如果你已经有用户账号,则可跳过;还有需要注意的就是,上面path里面的/www/wwwroot/用户名 要与你创建的用户名一致

创建共享目录,修改权限

  1. cd /www/wwwroot/zzc
  2.  mkdir share
  3.  chmod 777 -R share

重启samba的命令      /sbin/service smb restart        systemctl restart smb

查看samaba配置文件  rpm -qa | grep samba

rpm -ql samba-common | grep smb.conf         :查找smb.conf 配置文件

进行卸载 每一条都进行卸载删除

rpm -e samba-common-tools-4.8.3-4.el7.x86_64

rpm -e --nodeps samba-client-libs-4.8.3-4.el7.x86_64(删除不掉的使用该方法)

分类:

技术点:

相关文章:

  • 2021-12-10
  • 2021-05-06
  • 2021-04-07
  • 2021-06-29
  • 2021-11-05
  • 2021-11-08
  • 2021-12-01
  • 2021-09-10
猜你喜欢
  • 2021-07-26
  • 2021-06-28
  • 2021-10-13
  • 2021-12-08
  • 2021-12-10
  • 2021-11-28
  • 2021-11-05
相关资源
相似解决方案