Is there are reason I cannot create files from scripts on an NSS volume ???

If I try this from the command line (as root) it works.
echo "test" >> /media/nss/volume_name/path/test.txt

If I try the same from a script (marked executable and run as root) it fails saying no such file/directory. I have also seen "no such device".

If I run the script but point the output to an EXT3 fs it works.

Similarly, if I use "touch" I cannot create a file on NSS, even on the command line.

Yet other things like dbcopy (for GroupWise) can create files there running as root !

Ideas anyone ?