Samba4 Public Share

Aus xinux.net
Zur Navigation springen Zur Suche springen
  • apt install samba
  • mkdir /mnt/share
  • vi /etc/samba/smb.conf
[global]
   workgroup = WORKGROUP
   server string = %h server (Samba, Ubuntu)
   dns proxy = no
   log file = /var/log/samba/log.%m
   max log size = 1000
   panic action = /usr/share/samba/panic-action %d
   server role = standalone server
   passdb backend = tdbsam
   unix password sync = yes
   pam password change = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *new*password* %n\n *new*password* %n\n *updated*
   passwd chat debug = yes
   map to guest = bad user
   usershare allow guests = yes
   acl allow execute always = yes
[share]
  comment = public anonymous access
  path = /mnt/share/
  browsable =yes
  create mask = 0660
  directory mask = 0771
  writable = yes
  guest ok = yes
  • systemctl enable smbd --now