A
A
Alexander2019-08-07 13:21:16
NAS
Alexander, 2019-08-07 13:21:16

What is the best bundle for storing and transferring files?

Hello!
There is an office + remote employees. People transfer photos/documents via ftp to QNAP TS-210 file storage. Other employees access the file through a mapped network drive in Windows, they work with the information thrown off.
This system has been working in the office for 5 years before my arrival, but it became clear that there is no way to set up selective bans on editing folders and files (some employees can easily delete their own or other people's crooked data sweeping jambs).
That is, most of the employees must upload photos/documents to QNAP TS-210 via ftp, but without the ability to ever delete this data under their account. A minority of employees should have full rights to edit documents / photos.
What is an alternative to this scheme with the ability to fine-tune editing permissions by user, etc.?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Svistunov, 2019-08-15
@svalx

The current link can be completely modified for your task. You need to install the "sticky bit" chmod a + t dir on the directory, then change the owner with the group and the rights to the files as you need when the file write is completed. Create a group with full access, add privileged employees to it, for example, editors, the rights will be 774. You can monitor changes in the FS using a script like:
Here you can peep a more advanced version, or modify the script yourself.
After closing any file previously opened for writing, incl. creating a new one, all files in the directory will be assigned new owners, groups, and permissions. True, even privileged employees will not be able to delete files, only the administrator.
On QTS, you can set up your script to run automatically by creating the [autorun] package, examples can be found for example here .
If a full-fledged Linux distribution were used instead of QNAP, then your task could be solved more elegantly using SELinux.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question