SMB mount permissions.

vrtisworks

Registered
I have a windows share mounted on a 10.3.9 server. It is working fine. The user ID that I used to mount it can do what ever they need to (basically create, read and delete files).

I have also recently started Apache (via Web Service). That works fine. Even got PHP working.

The challenge is that I would like to display some of the data from the Windows share using PHP and Apache... When I tried it, I got "permission denied" from PHP.

When I did an ls -l, the permissions on the Directory were DRWX------ Which would explain the permission denied, since Apache is running under www.

I haven't figured out how to change the permissions on the Windows share. All I need is to get it to DRWXR--R--, but can't figure out where this is set.

Thanks....
 
vrtisworks said:
I have a windows share mounted on a 10.3.9 server. It is working fine. The user ID that I used to mount it can do what ever they need to (basically create, read and delete files).

I have also recently started Apache (via Web Service). That works fine. Even got PHP working.

The challenge is that I would like to display some of the data from the Windows share using PHP and Apache... When I tried it, I got "permission denied" from PHP.

When I did an ls -l, the permissions on the Directory were DRWX------ Which would explain the permission denied, since Apache is running under www.

I haven't figured out how to change the permissions on the Windows share. All I need is to get it to DRWXR--R--, but can't figure out where this is set.

Thanks....

It's in Sharing in WorkGroup Manager. Simply navigate to the folder, then set the permissions under "General." If necessary, cascade them down using the Action (Gear) menu. However, the DRWX permissons might indicate that this "share" is part of or actually a user's home directory, so be careful. That's what the "Sites" folder in the home directory is for, it's web-friendly. Move your data there and all should be well.
 
Back
Top