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