Answer the question
In order to leave comments, you need to log in
[[+content_image]]
How can I make group O have permissions 0 when creating a file?
Hello.
Create /data/sales
Next:
chown -R .sales /data
chmod -R 2770 /data
[[email protected] data]# ls -l sales
total 0
-rw-r--r--. 1 root sales 0 Jul 15 14:02 file
[[email protected] data]#
[[email protected] data]# ls -l sales
total 0
-rwxrwx---. 1 root sales 0 Jul 15 14:02 file
[[email protected] data]#
Answer the question
In order to leave comments, you need to log in
It looks like you want to inherit directory permissions. This behavior is not provided by default on *nix filesystems. If you cannot do without such functionality, use ACL. Read about it as a whole, you are specifically interested in default rights. https://help.ubuntu.ru/wiki/access_control_list
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question