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.

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
//[EMAIL PROTECTED]/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: [EMAIL PROTECTED]

³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
//[EMAIL PROTECTED]/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: [EMAIL PROTECTED]

³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

Reply via email to