title: mount a windows smb share on OS X as so it can be accessed by 'www' user
body: <p>trying to mount an smb share on OS X so that the 'www' user can read files from there.</p>
  
  <p>the SMB share is accessible via an Active Directory account. I can mount the share through the Finder (cmd-k ...)</p>
  
  <p>my basic approach is</p>
  
  <pre><code># 1) create mountpoint 
  sudo mkdir /Volumes/www_mdisk
  
  # 2) permissions for mountpoint
  sudo chown www:www /Volumes/www_mdisk; sudo chmod 777 /Volumes/www_mdisk
  
  # 3) make a link from apache docroot to mountpoint (http.conf FollowSymlinks is on)
  cd /Library/WebServer/Documents; ln -s /Volumes/www_mdisk mdisk
  
  # 4) mount the SMB share using the Active Directory user 'ad_user'
  sudo mount_smbfs -O www/www '//DOMAIN;ad_user@smbshare_host/sharepath'
  </code></pre>
  
  <p>step 4 fails though. I have read the manpages, tried many different combinations (with or without -O switch), but can't get it to work</p>
  
  <p>can you help me get it right?
  thanks!</p>