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
334 B
Bash

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