Mounting afp as different user for php access

邮差的信 提交于 2019-12-04 18:55:08

Should be able to mount the volume as _www in the terminal.

sudo -u _www mount_afp -I //user@host/share /path/to/mountpoint.
Omit -I if you want to specify the password in the URI.

Either that or you could use mount_afp using system() or exec() from within the script.

If it is for a web server you will probably want to look into automatically mounting the share at startup.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!