Fixed bugs with chown on hidden share for samba script