I need help regarding file permission in samba sharing, Is it possible to set an excel file in samba sharing (windows clients) can be modified by group but only can be deleted by owner? I did follow some suggestion in some sources, it come to following samba config and ACL's, because we need to protect the file deletion from some users, the one that can delete will be only root:

    path = /media/ABC
    browseable = yes
    writeable = yes
    valid users = @ABC
    write list = @ABC
    force group = ABC
    create mode = 0664
    directory mode = 3775

with ACL's:

    root@svr:~# getfacl /media/ABC
    getfacl: Removing leading '/' from absolute path names
    # file: media/ABC
    # owner: root
    # group: ABC
    # flags: -s-

    root@svr:~# ls -l /media/ABC
    total 12
    -rw-rw-r-- 1 root ABC 8746 Nov 21 10:28 A.xlsx

I appreciate for any suggestions.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.