Last active
March 3, 2023 00:10
-
-
Save dermanov-ru/05fde8ad06653b90dd3e0ec70eed7f1d to your computer and use it in GitHub Desktop.
BASH
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# bash установить права на файлы и папки только на чтение | |
find ./ -type f -exec chmod 444 {} \; | |
find ./ -type d -exec chmod 555 {} \; | |
# показать фоновые задания | |
jobs | |
# отвязать фоновые задания | |
disown |
Author
dermanov-ru
commented
Nov 20, 2020
•
# на папки даем права на запись только владельцу
chmod 755 ./ -R
# на файлы - всем только чтение. и владельцу тоже! при этом он может создавать новые файлы,
find ./ -type f -exec chmod 444 {} ;
# на корневую папку проекта (документ рут) - никому не даем права на запись, даже владельцу
chmod 555 .
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment