2023-03-03 08:54:02 +01:00
|
|
|
# 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
|
|
|
|
|
2023-03-03 16:14:19 +01:00
|
|
|
# All guides seem to use the name PS2SMB, and it may require manual typing
|
|
|
|
# on the console
|
|
|
|
[PS2SMB]
|
2023-03-03 08:54:02 +01:00
|
|
|
Comment = PlayStation2 images
|
2023-03-03 16:14:19 +01:00
|
|
|
# sudo chcon -t samba_share_t /shome/jaettu/PS2
|
|
|
|
# jaettu = shared in Finnish
|
2023-03-03 08:54:02 +01:00
|
|
|
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
|