Ave,
I used to run Mac OS X 10.3.9 Panther, and used a neat shell command to mount a Windows Share on a Share Point in my Mac. Using the Share Point, different PHP Scripts in my Web Sites hosted on my Apache Web Server were able to access the files on the windows share.
Following is the shell command I used to mount a Windows Share called "Transfer" on a Share Point on my Mac called "OSM":
This gave Read/Write permissions to files in the 'Transfer' Share.
My PHP scripts could then access the files in such a manner:
Unfortunately, none of this is working Leopard. I just upgraded to Mac OS X 10.5.
First of all, mount_smbfs -u 70 -g 70 //user@192.168.1.2/Transfer ~/Documents/XFER/osm fails completely. I get an error that "-u" is not a supported argument. Which tells me that the "mount_smbfs" command has changed in Leopard and does not accept the -u or -g arguments.
If it doesn't, then how am I to mount the shares?
I was able to mount the shares in Leopard by simply using mount_smbfs //user@192.168.1.2/Transfer ~/Documents/XFER/osm ... but when I do this - although the mount does appear and I can browse through the files in Finder - no Permissions have been specified and thus my PHP scripts fail to open files on the share.
Does anyone know what I have to do to be able to mount Windows Shares using mount_smbfs and apply desired Read/Write permissions?
Also, has anything with Share Points changed?
Thanks.
I used to run Mac OS X 10.3.9 Panther, and used a neat shell command to mount a Windows Share on a Share Point in my Mac. Using the Share Point, different PHP Scripts in my Web Sites hosted on my Apache Web Server were able to access the files on the windows share.
Following is the shell command I used to mount a Windows Share called "Transfer" on a Share Point on my Mac called "OSM":
mount_smbfs -u 70 -g 70 //user@192.168.1.2/Transfer ~/Documents/XFER/osm
This gave Read/Write permissions to files in the 'Transfer' Share.
My PHP scripts could then access the files in such a manner:
$db = dbase_open("/Users/user/Documents/XFER/osm/file.dbf", 0);
Unfortunately, none of this is working Leopard. I just upgraded to Mac OS X 10.5.
First of all, mount_smbfs -u 70 -g 70 //user@192.168.1.2/Transfer ~/Documents/XFER/osm fails completely. I get an error that "-u" is not a supported argument. Which tells me that the "mount_smbfs" command has changed in Leopard and does not accept the -u or -g arguments.
If it doesn't, then how am I to mount the shares?
I was able to mount the shares in Leopard by simply using mount_smbfs //user@192.168.1.2/Transfer ~/Documents/XFER/osm ... but when I do this - although the mount does appear and I can browse through the files in Finder - no Permissions have been specified and thus my PHP scripts fail to open files on the share.
Does anyone know what I have to do to be able to mount Windows Shares using mount_smbfs and apply desired Read/Write permissions?
Also, has anything with Share Points changed?
Thanks.