Monday, 5 September 2016

Samba42 configurations - smb4.conf





#pkg install samba42
#echo 'samba_server_enable="YES"' > /etc/rc.conf
#mkdir /sambashares
#chmod 777 /sambashares  #Only If public access required with no authentication

# vi /usr/local/etc/smb4.conf

ADD THE FOLLOWING CODE INSIDE ---- modify network and hosts allowed as per your running network

[global]


   workgroup = MYGROUP

   server string = Samba Server

   server role = standalone server
   map to guest= bad user
   hosts allow = 192.168. 127.
#   security = user

#  guest account = pcguest

   log file = /usr/local/samba/var/log.%m
 
   max log size = 500

#   realm = MY_REALM

#   passdb backend = tdbsam

#   include = /usr/local/samba/lib/smb.conf.%m

   interfaces = 192.168.220.5/24

#   logon path = \\%L\Profiles\%U

#   wins support = yes

#   wins server = w.x.y.z

#   wins proxy = yes

   #dns proxy = no

#share modes = yes

[homes]
   comment = Home Directories
   browseable = no
   writable = yes


[myshares]
  comment = virtual
  path = /sambashares
  public = yes
 writable = yes
only guest = yes

No comments:

Post a Comment