Ave, I can't believe I'm saying this, but SOLVED it! Took me about 6 hours, and this one website, with this one little snippet in one corner of a black & white page on the ENTIRE Internet gave me a solution with this guy who had the same problem - and he wrote "fixed it for me, hope it helps someone else" - Well, if he ever came to town, beer would be on the house :) Believe it or not, two simple little parameters to the mount_smbfs command did the trick. mount_smbfs -u 70 -g 70 //user@xxxxxxxxxxx/ShareName SharePoint Explanation: First & foremost, this does not work with the "mount" command (mount -t smbfs) which is what I was using. It only works with the "mount_smbfs" command. Basically you have to specify the uid & gid, that is, the UserID and the GroupID that you want to specify as Owner & Group of the mounted share. In my case, 70 is the uid & gid of Apache Web Server on Mac OS X. With the "-u 70 -g 70" specifying Apache Web Server, of the mounted share, Apache got read/write permissions to anything on the mounted share. Suddenly I was able to write to files using PHP/Apache on that share! Actually it's a useful command because once you determine UID & GID of a User/Group that you want to specify for a mounted share, you can tighten security and really take control of permission sets for a mounted share. snip: I used NetInfo Manager to find out uid & gid of Apache Web Server on my Mac OS X. Hope this helps someone else ;) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: sleepwalker@xxxxxxxxxxxxxxxx ³I morti non sono piu soli ... The dead are no longer lonely² On 3/22/07 3:32 PM, "Tijnema !" <tijnema@xxxxxxxxx> wrote: > On 3/22/07, Rahul Sitaram Johari <sleepwalker@xxxxxxxxxxxxxxxx> wrote: >> Ave, >> >>> But i think that when remounting the partitition, the permissions are reset >> too. >> >> Unfortunately you're absolutely right! The share is re-mounted on a daily >> basis (along with a reboot), and thus, even if the 'copy, delete from >> server, copy to server' process were to work, with every unmount & remount, >> it would go back to original permissions & ownership. >> >> Fmask, dmask and for that matter some other mount_smbfs options I found are >> an accurate solution to this problem - but unfortunately they don't work on >> Mac OS X, or the Samba that comes with mac os x, one or the other. >> >> I know this is gone completely out of PHP context, but I do appreciate you >> guys helping out. I'm just not finding any solution for this. I think I've >> gone through 100 websites googling different combinations. > > You could try to update to the latest version (maybe even from CVS), > i'm not sure if it helps, but if it is fixed, it is done in a later > version :) > > And if it doesn't, you could submit a bug ticket at samba. > > Tijnema >> >> >> >> On 3/22/07 3:14 PM, "Tijnema !" <tijnema@xxxxxxxxx> wrote: >> >>> On 3/22/07, Al <news@xxxxxxxxxxxxx> wrote: >>>> Get a copy of WinSCP3 or FileZilla ftp utilities, both are free. They will >>>> show >>>> you who the owner is for the dirs and files. You can also use a SSH shell >>>> command; but, unless you are already familiar with Unix commands, using the >>>> utilities will be a lot easier and quicker. >>>> >>>> To change a file or dir when you do not own or have the proper permissions: >>>> Copy the files and dirs to your local HD >>>> Delete them on the server. >>>> Upload them from your HD to the server. Now the owner will be the ID of ftp >>>> login, that's you. >>>> Fix the permissions as needed. The files and dirs must have the "others", >>>> also >>>> called "world", W bit set to write and maybe the X bit also. >>> >>> So you would recommend a recursive chmod? >>> as long as there's no OS installed it wouldn't do a lot, but of course >>> this would remove a little bit security. (Not that there's a lot of >>> security with windows...:P) >>> But i think that when remounting the partitition, the permissions are >>> reset too. That's why there are options like fmask and dmask :) but >>> somehow they don't work on Mac OS X. >>> >>> Tijnema >>> >>>> >>>> Rahul Sitaram Johari wrote: >>>> >>>> >>>> Rahul Sitaram Johari wrote: >>>>> Ave, >>>>> >>>>> I¹m not sure if anyone here is going to be able to help, but I¹ve run into >>>>> a >>>>> permissions snag. >>>>> I have Apache Web Server running on Mac OS X with PHP. I have a folder on >>>>> a >>>>> windows machine mounted on my Mac OS X as a share using the ³mount t >>>>> smbfs >>>>> //user@xxxxxxxxxxx/ShareName Share². >>>>> The ³user² has full read-write permission and physically I¹m able to do >>>>> anything I want sitting on my Mac OS X in this share, like create, delete >>>>> or >>>>> modify files. >>>>> >>>>> The problem is, I don¹t think Apache Web Server (or PHP) has write access >>>>> on >>>>> this share. In PHP, I¹m able to read data from files on this share, but >>>>> I¹m >>>>> not able to write data to any file on that share. I get access is denied. >>>>> >>>>> Is there anyway through PHP to give Apache or PHP write access to the >>>>> files >>>>> on this share? >>>>> I don¹t see how I can provide Apache Web Server (installed on my Mac) >>>>> Write >>>>> Access through the Windows System that has the original folder. Windows is >>>>> only able to provide the Mac User with Permissions, not Apache. >>>>> >>>>> Any help would be appreciated. >>>>> >>>>> Thanks >>>>> >>>>> >>>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>>> Rahul Sitaram Johari >>>>> CEO, Twenty Four Seventy Nine Inc. >>>>> >>>>> W: http://www.rahulsjohari.com >>>>> E: sleepwalker@xxxxxxxxxxxxxxxx >>>>> >>>>> ³I morti non sono piu soli ... The dead are no longer lonely² >>>>> >>>>> >>>>> Ave, >>>>> >>>>> I¹m not sure if anyone here is going to be able to help, but I¹ve run into >>>>> a >>>>> permissions snag. >>>>> I have Apache Web Server running on Mac OS X with PHP. I have a folder on >>>>> a >>>>> windows machine mounted on my Mac OS X as a share using the ³mount t >>>>> smbfs >>>>> //user@xxxxxxxxxxx/ShareName Share². >>>>> The ³user² has full read-write permission and physically I¹m able to do >>>>> anything I want sitting on my Mac OS X in this share, like create, delete >>>>> or >>>>> modify files. >>>>> >>>>> The problem is, I don¹t think Apache Web Server (or PHP) has write access >>>>> on >>>>> this share. In PHP, I¹m able to read data from files on this share, but >>>>> I¹m >>>>> not able to write data to any file on that share. I get access is denied. >>>>> >>>>> Is there anyway through PHP to give Apache or PHP write access to the >>>>> files >>>>> on this share? >>>>> I don¹t see how I can provide Apache Web Server (installed on my Mac) >>>>> Write >>>>> Access through the Windows System that has the original folder. Windows is >>>>> only able to provide the Mac User with Permissions, not Apache. >>>>> >>>>> Any help would be appreciated. >>>>> >>>>> Thanks >>>>> >>>>> >>>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>>> Rahul Sitaram Johari >>>>> CEO, Twenty Four Seventy Nine Inc. >>>>> >>>>> W: http://www.rahulsjohari.com >>>>> E: sleepwalker@xxxxxxxxxxxxxxxx >>>>> >>>>> ³I morti non sono piu soli ... The dead are no longer lonely² >>>>> >>>>> >>>> >>>> -- >>>> PHP General Mailing List (http://www.php.net/) >>>> To unsubscribe, visit: http://www.php.net/unsub.php >>>> >>>> >>> >>> -- >>> PHP General Mailing List (http://www.php.net/) >>> To unsubscribe, visit: http://www.php.net/unsub.php >>> >> >> >> > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php