in reply to running tar from a browser

Your script is most likely being executed as the user 'nobody' (the same user the web process is running as), and therefore doesn't have proper access.

scott.