Windows 10 has a bug (smb 3.1.1) and will only display samba shares in network discovery if “server max protocol” is set to the old NT1. Alternatively set “os level = 1” so that one of the windows machines becomes the master browser in the workgroup.

smb.conf

#===== Global Settings =====

[global]


## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of

	workgroup = WORKGROUP

# server string is the equivalent of the NT Description field

	server string = %h server (Samba, Linux Mint)

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
#   wins support = no

# This will prevent nmbd to search for NetBIOS names through DNS.

	dns proxy = no


#### Debugging/Accounting ####

# This tells Samba to use a separate log file for each machine
# that connects

	log file = /var/log/samba/log.%m

# Cap the size of the individual log files (in KiB).

	max log size = 1000

# We want Samba to log a minimum amount of information to syslog. Everything
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
# through syslog you should set the following parameter to something higher.

	syslog = 0

# Do something sensible when Samba crashes: mail the admin a backtrace

	panic action = /usr/share/samba/panic-action %d


####### Authentication #######

# Server role. Defines in which mode Samba will operate. Possible
# values are "standalone server", "member server", "classic primary
# domain controller", "classic backup domain controller", "active
# directory domain controller". 
#
# Most people will want "standalone sever" or "member server".
# Running as "active directory domain controller" will require first
# running "samba-tool domain provision" to wipe databases and create a
# new domain.

	server role = standalone server

        os level = 1

# If you are using encrypted passwords, Samba will need to know what
# password database type you are using.  

	passdb backend = tdbsam

	obey pam restrictions = yes

# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.

	unix password sync = yes

# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
# sending the correct chat script for the passwd program in Debian Sarge).

	passwd program = /usr/bin/passwd %u

	passwd chat = *Entersnews*spassword:* %nn *Retypesnews*spassword:* %nn *passwordsupdatedssuccessfully* .

# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.

	pam password change = yes

# This option controls how unsuccessful authentication attempts are mapped
# to anonymous connections

	map to guest = bad user


############ Misc ############

# Allow users who've been granted usershare privileges to create
# public shares, not just authenticated ones

	usershare allow guests = yes


############ Printing ############

	load printers = no
	printing = bsd
	printcap name = /dev/null
	printcap cache time = 0
	disable spoolss = yes



#===== Share Definitions =====
	

[Mint]
	comment = Linux Media Server (Readonly)
        guest ok = no
	browsable = yes
	path = /mnt/ARCHIVE/smb-mint
	writable = no
        valid users = mint

[Archive]
        comment = Linux Media Server
        guest ok = no
        browsable = yes
        path = /mnt/Archive
        read only = no
        directory mask = 0775
        create mask = 0664

[Guest]
        comment = Linux File Server (Writeable)
	path = /mnt/ARCHIVE/smb-guest
	guest ok = no
        writeable = yes
	browsable = yes
	valid users = guest

smbusers

# Unix_name = SMB_Name1 SMB_Name2 ...
root = administrator
nobody = guest smbguest pcguest
mint = mint
guest = guest

Samba users (sambashare group)

sudo smbpasswd -a mint

sudo smbpasswd -a guest

testparm

sudo service smbd restart

sudo service nmbd restart
Living in Tune with Nature's Beat (Earth, Water, Fire, Air, Space)

Leave a Reply

Your email address will not be published. Required fields are marked *