A
A
Artyom2017-07-06 11:09:29
linux
Artyom, 2017-07-06 11:09:29

How to assign permissions to folders in Ubuntu Server?

Good day!
So, the description of the problem:
Small office, 8 windows machines, a couple of poppies, a server on Ubuntu Server. The server has file storage and test sites for the internal needs of the office. Raised samba to LAN. There are three main folders on the file washer - one common, where everyone goes without accounts and passwords, and two closed for the accountant and admin. And everything is fine, everything works, everyone uses it until an accountant or an admin starts creating folders or files in a shared folder. By default, from other users (without accounts and passwords), folders and files are created on behalf of nobody and the nogroup group, and everyone has access to them. And the folders created by the accountant and the administrator receive the rights of their names and their groups, respectively, all other users do not have access to them. I would like it the other way around.
And now the question is: how to make the accountant and the administrator go to their closed folders, create folders and files in them from their names and groups, but at the same time be able to create folders and files in a shared folder so that everyone can get to them access.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Aleksandrov, 2017-07-06
@Makin

you don't need any crowns with chmods. Read about create mask\force create mode\directory mask\force directory mask.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question