permission check: use eaccess instead.