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

# Recursively change permissions to allow read sharing with group and others.
function perm_share() {
find . -type d -exec chmod 755 {} \;; find . -type f -exec chmod 644 {} \;
}
# Recursively change permissions to restrict access for group and others.
function perm() {
find . -type d -exec chmod 700 {} \;; find . -type f -exec chmod 600 {} \;
}