your script should use another dir as target (you'd create a /var/lig/mysql-files owned by mysql:mysql) then move the file elsewheremysql can't traverse /home/e-smith/files/ dir AFAIK