OSX服务器_www访问samba安装目录

我有问题自动安装在我们的OSX 10.6服务器上的SMB共享,​​以便_www有权读取提供的文件。

如果我使用osx中提供的graphics自动挂载实用程序进行挂载,则操作系统不允许以_www的forms访问这些文件

我已经能够通过发出:

sudo -u _www mount_smbfs //sambauser:password@<ip addr>/ShareName /tmp/my_mnt

但是,这明显要求input一个超级用户的密码,我可以很容易地在fstab的Linux机器上做这个通过把//host/share /path/to/mount/point smbfs username=remotename,password=remotepass,uid=_www 0 0fstab但看到的OSX所有,但与FSTB做了我不能这样做。

有没有什么明显的我在这里失踪?

谢谢

斯图尔特

这个答案是直接从http://hints.macworld.com/article.php?story=20100203124656707

  1. 将一个新行添加到/ etc / auto_master

      /- auto_smb 
  2. 把它放在/ etc / auto_smb中

      /path/to/mountpoint -fstype=smbfs ://user:password@server/share 
  3. 创build安装点

      mkdir /path/to/mountpoint chmod 755 /path/to/mountpoint 
  4. 重新开始