W
W
waltaki2021-10-18 03:41:53
linux
waltaki, 2021-10-18 03:41:53

How to prevent root from violating other users' quotas?

There is a file created under the user test.
test has a hard quota of 10MB.
But, if I add this file as root, I can easily overcome the user's quota. Although the file is owned by test.
Is it possible to make the behavior be the same as that of the test user for root - that is, the file is not root, then the quota works from the owner of the file.

Why do I need it? It’s just that my program from under the root in c# can write files to other users, and it’s cumbersome to launch child processes from another user at the moment of exchanging data with him.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Armenian Radio, 2021-10-18
@waltaki

I just have a program from under the root

Here is the error. Service programs should sit under their users.
The reason is very simple - root has unlimited rights to everything . Therefore, if your program is poorly written, hacked (as a consequence of the first one), and so on, it can break everything in its path.
Therefore, all service programs sit exclusively under their personal users, and these users are already given the rights to specific operations.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question