I would like to configure a homemade NAS. It runs Ubuntu 20.04 LTS Server and use SAMBA to share the content of disk. It works perfectly (i can reach the shared folder). Now I would like to set permissions.
Idea:
There are 5 different user (client) who would like to use this server. Two of them (user 1, user2) can access the whole HDD (all directory with Read/Write permissions). The rest (user3-4-5) can acces the whole content also, but with read-only permissions. However there are some directory (ex. theirs private dirs) which are readable/writeable for them too.
To make this idea more understandable, I created a directory map, where green dir = read/write and red dir = read-only:
user1 and user2:
user n (n=3,4,5):
I modified /etc/samba/smb.conf
like this:
[My shared folder]
path = /media/my/shared/folder
read only = no
read list = user3 user4 user5
browseable = yes
hosts allow = ip1 ip2 ip3 ip4 ip5
hosts deny = 0.0.0.0/0
valid users = user1 user2 user3 user4 user5
max connections = 5
(users already added to samba)
The main problem is that user3-4-5 cannot modifie theirs private folder, because the whole HDD is read-only for them.
How can I set permissions correctly to user3-4-5 be able to R/W (modifie) theirs (ONLY theirs) folders?