SMB How to Read/Write/Edit with no delete

gwaitsi

Patron
Joined
May 18, 2020
Messages
243
I have a media dataset where I currently have the owner as me:me
I want
- me to have write / read / edit / delete rights to everything
- users to have write/read/edit rights to their own data but not delete
i managed to get it so they couldn't delete directories, but they were able to still delete other users files.

They other thing is, if the owner dataset owner is me:me, when they write a file or directory, the owner is user:me
if I change the dataset owner to me:users then, when the user writes a file or directory the owner is user:users
on 13U1.1
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
If you remove the ability to delete / unlink, you also lose the ability to rename files (this is same as Windows). Just FYI. We have a SMB WORM preset for shares (optional) that makes files RO after a few minutes. You can create two shares one WORM and the other a hidden admin share with a share ACL only allowing your admin group access. This is somewhat more flexible.
 

gwaitsi

Patron
Joined
May 18, 2020
Messages
243
Are you looking for this kind of thing?

Thanks for m8, i tried

setfacl -m u::rwxs,g::rwx /mnt/data/media
setfacl -m u::rwxs,g::rwx media

it, but i am getting;
"branding mismatch; existing ACL is NFSv4, entry to be merged is POSIX.1e"

Background here is;
in older versions of Truenas and formely Freenas, I had both NFSv4 and SMB shares for the same dataset. My system was progressively upgraded.

I removed the NFS shares after (I think you), recommended me to in Truenas v13 so i am using smb for my linux destop now.

I have tried removing ACLs repeatedly and i don't have either NFS shared defined, or the service enabled.
 
Last edited:
Top