[global] # SMB uses ports 139 & 445, as explained in this blog post smb ports = 139 445 netbios name = RIZZ0-BUILT workgroup = MYGROUP # Use either NetBIOS broadcast for name resolution or entries in the /etc/hosts file name resolve order = bcast host # Don't care if the workgroup name is upper or lower case case sensitive = no # User authentication is used to access the shares security = user map to guest = bad user guest account = guest # Don't allow the use of root for network shares invalid users = root # Domain master only applies to LANs that are inter-connected across a WAN domain master = no # This machine is eligible to be a Master Browser and its priority is 4 # (the higher the os level, the more preferred to be Master Browser) # (the maximum allowable value for os level is 255) preferred master = yes os level = 4 dns proxy = no # Always advertise the shares automatically auto services = global # Interfaces on which to listen for NetBIOS broadcasts and to allow SMB connections # Include "lo" because it is the internal interface # em1 is the name of the Ethernet interface, found using the ifconfig command interfaces = lo em1 hosts allow = 127.0.0.1 192.168.1.116 192.168.1.115 192.168.1.110 192.168.1.119 bind interfaces only = yes log file = /var/log/samba/log.%m max log size = 1000 syslog = 0 panic action = /usr/share/samba/panic-action %d server role = standalone server passdb backend = tdbsam obey pam restrictions = yes # Don't synchronise the Linux and Samba user passwords - they can be different unix password sync = no passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . pam password change = yes # This Samba configuration does not advertise any printers load printers = no # File to map long usernames to shorter Unix usernames, if necessary username map = /etc/samba/smbusers # Allow guest user access if specified in the shares guest ok = no # First user share is called "Gentoo" - only user "bry2k200" specified below can connect to the share [share] comment = "Gentoo Share" path = /home/bry2k200/Media writeable = yes browseable = yes valid users = bry2k200