Table of Contents

Samba



Goal

Providing a NAS for Mac, Linux and Windows based on a Raspberry Pi and Samba.


WEB Interface

WEBmin is very powerful, but sometimes its easier to edit the Samba file directly. ;)
Direct edit is also available in the WEBmin.


Server

Example share

[Public]
	path = /mnt/sda1/Public
	public = yes
	force group = users
	user = @users
	writeable = yes

Mac TimeMachine

Global extra settings

[global]
	fruit:metadata = stream
	fruit:posix_rename = yes 
	fruit:model = Xserve
	fruit:nfs_aces = no
	fruit:wipe_intentionally_left_blank_rfork = yes 
	fruit:veto_appledouble = no
	fruit:delete_empty_adfiles = yes 

Share example

[TimeMachine]
	public = yes
	writeable = yes
	path = /mnt/sda1/TimeMachine
	user = @users
	fruit:time machine = yes

Windows

To enable the Window Explorer to find a Samba Server the wsdd2 package must be installed:

sudo apt install wsdd*

See also: https://github.com/Netgear/wsdd2


Samba users

The easiest way is to add a user to the RPi with the user mananger and then to Samba:

sudo smbpasswd -a <linuxuser>