This repository has been archived on 2024-03-04. You can view files and clone it, but cannot push or open issues or pull requests.
linux/.config/bash/module/permissions.sh

10 lines
352 B
Bash
Raw Normal View History

2023-12-07 04:02:47 +03:00
# Recursively change permissions to allow read sharing with group and others.
2023-12-07 01:44:42 +03:00
function perm_share() {
2023-12-07 00:42:06 +03:00
find . -type d -exec chmod 755 {} \;; find . -type f -exec chmod 644 {} \;
}
2023-08-08 16:24:15 +03:00
2023-12-07 04:02:47 +03:00
# Recursively change permissions to restrict access for group and others.
2023-12-07 01:44:42 +03:00
function perm() {
2023-12-07 00:42:06 +03:00
find . -type d -exec chmod 700 {} \;; find . -type f -exec chmod 600 {} \;
}