2010-02-02, 04:09
outleradam Wrote:the checks for filesize are as follows:
$1= move filesize, $2 = movedir free space $3 = movedir name
depending on the check, like, originaldir and working dir, reasonable filesize values are set, 1k file size for originaldir 5M file size for workingdir.
it's pretty straight forward.Code:checkpermissions () {
TMoveDirWritable=0
if [ ! -z $2 ] && [ ! -z "$1" ] && [ $1 -lt $2 ]; then
echo "Testing write permission on $3">$3/arbitraryfile.ext
if [ -f "$3/arbitraryfile.ext" -a -s "$3/arbitraryfile.ext" ]; then
rm -f "$3/arbitraryfile.ext"
test ! -f "$3/arbitraryfile.ext" && TMoveDirWritable=1 || TMoveDirWritable=0
else
TMoveDirWritable=0
echo "CHECK PERMISSIONS ON $MoveDir"
fi
elif [ -z "$2" ] || [ $1 -ge $2 ]; then
TMoveDirWritable=0
echo "UNUSABLE SPACE-CHECK:$3"
fi
}
you did change your configuration in the mythicalLibrarian.sh file correct? Did you add quotes?
certain folders will not allow the mythtv user to run scripts. /var/ for example. It's part of linux security. If you mount folders in /home/ you will always be fine.
hrm.. does your filesystem support the rm -f setting?
Code:[email protected]:~$ rm --version
rm (GNU coreutils) 7.4
yes everything is set right..you may not believe me, but i didnt get these permission errors till i upgraded the script..coincidence..i dunno
you see the proof in the pudding.i showed you free space on every drive and I was able to "touch" a file in each and every folder i have set. i have already proven that what more could you want here? how can it STILL be my fault when ive gone through at least 3 times and made sure the owner was mythtv (where possible.not posssible on ntfs but I still have no problems writing to it)
also set chmod -R 0777 to every freakin folder in use just now and no change