新版samba安装过程

yum install samba samba-client samba-swat

 

cp -p /etc/samba/smb.conf    /etc/samba/smb.conf.orig

 

/bin/systemctl restart  smb.service

  vim smb.conf

useradd alice

smbpasswd -a alice

id alice

[global]
  workgroup=BIGCLOUD
  netbios name=ZZSRV2
  server string=Samba Server
  #security=share
  security=user
  map to guest = Bad User
[SHAREDOCS]
  path=/smb/docs
  readonly=yes
  browseable=yes
  guest ok=yes
[RDDOCS]
  path = /smb/tech/
  public = no
  writable = yes
  write list = @alice
  validusers = @alice
~                      

/bin/systemctl restart  smb.service

 

转载于:https://www.cnblogs.com/agang-php/p/4590032.html

你可能感兴趣的:(新版samba安装过程)