Initial commit

This commit is contained in:
2021-10-16 15:06:07 -04:00
parent 9a839d6530
commit b2d495dadc
13 changed files with 663 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
#!/usr/bin/env bash
# Smartly change permissions on selected directories
# Copyright 2021 Bryan C. Roessler
[[ -f functions ]] && . functions || exit 1
is_root
[[ $# -eq 0 ]] && DIRS=("/mnt/data") || DIRS=("$@")
ask_ok "Reset permissions on ${DIRS[*]}?"
chgrp smbgrp -R "${DIRS[@]}" && \
chmod 6775 -R "${DIRS[@]}"
exit $?