K
K
kodi2014-01-21 14:09:40
FreeBSD
kodi, 2014-01-21 14:09:40

How to delimit permissions on directories (freebsd + zfs + samba)?

The problem with the distribution of rights to users under freebsd, FS - zfs.
The data is given to users through samba.
For example, the zfs partition tree looks like this:
/root
/root/folder1
/root/folder2
The administrator group needs to have access to the root folder and down the tree. user1 accesses folder1 and down the tree, user2 accesses folder2 and down the tree.
for /root we set
owner(user)=admin1, owner(group)=group_admins
permissions: owner,group we give all rights, other everything is forbidden
for /root/folder1 we set
owner(user)=user1, owner(group)=group_user1
permissions: owner,group we give all rights, other everything is forbidden
for /root/folder2 we set
owner(user)=user2, owner(group)=group_user2
permissions: owner,group give all rights, other all denied
But users cannot access their own folder. Administrators can. It turns out as if the rights "go down" from above to their folders.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question