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?!
Any ideas, or steps to accomplish my goals?
The created datasets are default (generic), should this be as SMB?
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?
Last edited: