title: mkdir -p cannot create directory `/DirName': Permission denied
body: <p>I'm trying to create a directory in a shell script:</p>
  
  <p>mkdir -p DirName</p>
  
  <p>but I always get the same error:
  cannot create directory `/DirName': Permission denied</p>
  
  <p>If I run the same command directly from the shell instead of using the scripts, that works perfectly.</p>
  
  <p>any idea?</p>
  
  <p>Thank you! :)</p>