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-14 15:57:14 +01:00
|
|
|
# These commands are required for SELinux to not complain
|
|
|
|
# sudo chcon -t samba_share_t /home/aminda/PS2
|
|
|
|
# sudo setsebool -P samba_enable_home_dirs on
|
|
|
|
Path = /home/aminda/PS2
|
2023-03-03 08:54:02 +01:00
|
|
|
Browseable = yes
|
2023-03-14 15:57:14 +01:00
|
|
|
# must be writeable for Open PlayStation 2 Loader
|
2023-03-03 08:54:02 +01:00
|
|
|
Writeable = Yes
|
|
|
|
only guest = no
|
|
|
|
create mask = 0777
|
|
|
|
directory mask = 0777
|
|
|
|
Public = yes
|
|
|
|
Guest ok = yes
|
2023-03-14 15:57:14 +01:00
|
|
|
# to surely not have permission issues
|
|
|
|
force user = aminda
|
2023-03-03 08:54:02 +01:00
|
|
|
follow symlinks = yes
|
|
|
|
wide links = yes
|
2023-03-14 15:57:14 +01:00
|
|
|
# Without this saving will take forever (minutes with Ratchet & Clank 2 EU)
|
|
|
|
# and if you give up waiting, you may corrupt your virtual memory card
|
|
|
|
# https://github.com/ps2homebrew/Open-PS2-Loader/issues/327
|
|
|
|
strict sync = no
|