Samba shares for users with different access rights

w3z5wz4q

Dabbler
Joined
Oct 28, 2022
Messages
12
Hello together,

at home I build up a TrueNAS Scale (22.02.4) system with many generic datasets like pictures, ebooks, projects, ....

Now I would add some samba shares for these datasets for my family, but each user must have different access rights (read, write).
I already played with an test dataset which should be accessed by 2 different users:

-Test dataset (generic)
--smb share
-- UserA (read, write)
-- UserB (read)

When I mount the share for UserA I can read, write files, after that I unmounted the share and re-mounted as UserB, but this user also can write/delete files?!

Code:
# Mount for UserA
sudo mount -t cifs //192.168.1.40/test/ ./test -o dom=WORKGROUP,uid=$(id -u),gid=$(id -g),username=UserA,password=...

# Mount for UserB
sudo mount -t cifs //192.168.1.40/test/ ./test -o dom=WORKGROUP,uid=$(id -u),gid=$(id -g),username=UserB,password=...



Any ideas, or steps to accomplish my goals?
The created datasets are default (generic), should this be as SMB?

1674809793848.png
 
Last edited:

w3z5wz4q

Dabbler
Joined
Oct 28, 2022
Messages
12
Hello out there, can anyone help?

I will prevent for each SMB share (music, pictures) have an individual local SMB user+password, I would prefer one for my person and in TrueNAS then specifica access rights, should I look into ACLs?
 
Top