Fix script-files-permissions-set
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
is_root
|
||||
|
||||
if [[ $# -eq 0 ]]; then
|
||||
user=$(stat -c "%U" "$path")
|
||||
group=$(stat -c "%G" "$path")
|
||||
user=$(stat -c "%U" "$PWD")
|
||||
group=$(stat -c "%G" "$PWD")
|
||||
echo "No arguments provided, using autodetection"
|
||||
if [[ "$group" != "smbgrp" ]]; then
|
||||
echo "This file will not be world-accessible by the smbgrp group"
|
||||
|
||||
Reference in New Issue
Block a user