D
D
d222018-12-12 13:09:25
Samba
d22, 2018-12-12 13:09:25

Samba config with separate folder access?

there is a public folder structure
(two more folders are nested in it)
-otdel1
-otdel2
there are users of department1 and department2.
It is necessary to organize that the users of department 1 can rummage through all the folders and write only to their own, so the user of department 2 writes only to their folder.
the public folder is connected as a network drive for all users.
I know how to organize access to individual folders, but what about nested ones?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2018-12-12
@d22

chown -R :wheel /public
chown -R :otdel1 /public/otdel1
chown -R :otdel2 /public/otdel2
chmod -R g=rwX,a=rX /public

Well, users, respectively, add to the desired groups

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question