<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>

ok, I can do this now on Mac OS X 10.4
```
```
# 4) mount the SMB share using the Active Directory user 'ad_user'
sudo mount_smbfs -O www/www -u 70 -g 70 '//DOMAIN;ad_user@smbshare_host/sharepath' www_mdisk

# 5) make sure http.conf has 'Options Indexes' enabled for Docroot
duh.
```
```
So everything works now on 10.4, following the steps above.
problem is, step 4) doesn't work on Mac OS X 10.5. mount_smbfs has lost the '-O' option...
Anybody knows how to do this on 10.5?