I have a shell script (build.sh) that ends by attempting to copy some files into a new directory. However it says:
mkdir: cannot create directory ‘/files/ondisk/shared//comp/auto/bleeding-1169-b28d31a’: Permission denied
when running the script.
The command is:
( umask 000; mkdir -p "${BASE}/${TARGET}" ) || exit -1
( umask 000; cp -r ${STORE} "${BASE}/${TARGET}" ) || exit -1
Does umask 000 not ensure that I am able to write to this location?