in reply to permission problems between commandline and CGI

This means that the uid/gid pair of your webserver is not allowed to mount something. see chmod/chown or look into your httpd.conf under User and Group settings. The second error looks like a result from the first. You try to read a file that can not reached.
Boris