samba.sh - fix #110 only change perms where needed
This commit is contained in:
parent
e059b4f0fb
commit
f3ba3cf25f
4
samba.sh
4
samba.sh
@ -63,8 +63,8 @@ import() { local name id file="$1"
|
||||
perms() { local i file=/etc/samba/smb.conf
|
||||
for i in $(awk -F ' = ' '/ path = / {print $2}' $file); do
|
||||
chown -Rh smbuser. $i
|
||||
find $i -type d -exec chmod 775 {} \;
|
||||
find $i -type f -exec chmod 664 {} \;
|
||||
find $i -type d ! -perm 775 -exec chmod 775 {} \;
|
||||
find $i -type f ! -perm 0664 -exec chmod 0664 {} \;
|
||||
done
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user