User Tools

Site Tools


admin:samba

This is an old revision of the document!


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.


Samba

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


Users

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

sudo smbpasswd -a <linuxuser>


RAID 1

Mirror two identical SSD's.
For the basic setup I used this link:
https://kraisnet.de/index.php/de/themen/11-nuetzliches/34-raid-1-auf-raspberry-pi-einrichten


SSMTP

For sending notifications from for example Raid.
https://blog.edmdesigner.com/send-email-from-linux-command-line/


admin/samba.1745130151.txt.gz · Last modified: 2025/04/20 08:22 by rjversluis