Trying to set up a nas with samba so I can link to multiple devices (my 2 computers, my phone, and my friends pc so far)
For anonymity purposes, my name is [a] and my friends name is [b]
Here is the tree of the /share directory, which is an ext4 partition on my drive.
/share
├── a-personal
├── lost+found
├── music
├── misc
└── temp
Temp is a directory made by my ReaR backup (didn’t have enough space on /tmp and couldnt expand because it was xfs), the only folders that really matter are music, misc, and personal.
I can map /share as a network drive, which is what I want, and then I want to be able to access the other folders depending on user. I have a group called share-users that I and my friends users belong to, but I want it so only I can access a-personal.
Here is my smb.conf:
[global]
workgroup = SAMBA
security = user
passdb backend = tdbsam
printing = cups
printcap name = cups
load printers = yes
cups options = raw
# Install samba-usershares package for support
include = /etc/samba/usershares.conf
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @printadmin root
force group = @printadmin
create mask = 0664
directory mask = 0775
[Share]
path = /share
read only = no
writeable = yes
browseable = yes
create mask = 0644
directory mask = 2777
force group = +share-users
valid users = @share-users
[a-personal]
path = /share/a-personal
valid users = a
browseable = no
[music]
path = /share/music
valid users = @share-users
force group = +share-users
browseable = no
[piracy]
path = /share/piracy
valid users = @share-users
force group = +share-users
browseable = no
What do I do here to allow access? When I try and click on any of the subfolders I get “windows cannot access servershare[folder]. I’m using RHEL 10.