smb.conf

[global]
	idmap config * : range = 10000-39999
	time server = no
	max xmit = 65535
	idmap config * : backend = tdb
	client max protocol = SMB3
	max log size = 100
	name resolve order = bcast host
	server role = standalone
	printing = bsd
	netbios name = INTEL-LINUX
	os level = 0
	strict locking = no
	dos charset = CP437
	map to guest = Bad User
	passdb backend = tdbsam
	max protocol = SMB3
	dns proxy = no
	server string = INTEL Linux Box
	load printers = no
	deadtime = 15
	unix charset = UTF-8
	domain master = no
	getwd cache = yes
	disable spoolss = yes
	printcap cache time = 0
	oplocks = yes
	printcap name = /dev/null
	guest account = nobody
	security = user
	read raw = yes
	local master = no
	log level = 1
	preferred master = no
	write raw = yes
	workgroup = WORKGROUP
	encrypt passwords = yes
        username map = /etc/samba/smbusers
	

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

[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
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 *