shell-things/etc/samba/playstation2.conf

40 lines
1.2 KiB
Plaintext
Raw Normal View History

# 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
# All guides seem to use the name PS2SMB, and it may require manual typing
# on the console
[PS2SMB]
Comment = PlayStation2 images
# 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
Browseable = yes
# must be writeable for Open PlayStation 2 Loader
Writeable = Yes
only guest = no
create mask = 0777
directory mask = 0777
Public = yes
Guest ok = yes
# to surely not have permission issues
force user = aminda
follow symlinks = yes
wide links = yes
# 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