From e265916ba14b21722e265b2f9b527325f80a45a1 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Fri, 3 Mar 2023 09:54:02 +0200 Subject: [PATCH] etc/samba/playstation2.conf: initial commit --- etc/samba/playstation2.conf | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 etc/samba/playstation2.conf diff --git a/etc/samba/playstation2.conf b/etc/samba/playstation2.conf new file mode 100644 index 00000000..b64159f9 --- /dev/null +++ b/etc/samba/playstation2.conf @@ -0,0 +1,30 @@ +# Leans heavily on +# https://github.com/toolboc/psx-pi-smbshare/blob/599248bb0dcfce06d112c7011594acacd7e4a38e/samba-init.sh#L15-L35 +# and https://www.redhat.com/sysadmin/samba-file-sharing +# +# Samba has include directives so this can be separate. +# e.g.: include = /etc/samba/playstation2.conf + +[global] +# SMBv1, required for PS2 +server min protocol = NT1 +workgroup = WORKGROUP +usershare allow guests = yes +map to guest = bad user +allow insecure wide links = yes + +# This seems to control the share name +[PlayStation2] +Comment = PlayStation2 images +# sudo chcon -t samba_share_t /sambashare/ +Path = /home/jaettu/PS2 +Browseable = yes +Writeable = Yes +only guest = no +create mask = 0777 +directory mask = 0777 +Public = yes +Guest ok = yes +#force user = pi +follow symlinks = yes +wide links = yes