Re: Permissions issue on share
| From: | Rahul Sitaram Johari | Date: | Thu, 22 Mar 2007 16:41:13 +0000 |
| Subject: | Re: Permissions issue on share | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-251103@lists.php.net to get a copy of this message | ||
rahul:~/Documents/XFER rjohari$ ls -la osm
total 26548
drwxr-xr-x 1 rjohari rjohari 16384 31 Dec 1969 .
drwxr-xr-x 5 rjohari rjohari 170 22 Mar 12:08 ..
-rwxr-xr-x 1 rjohari rjohari 21508 13 Sep 2006 .DS_Store
-rwxr-xr-x 1 rjohari rjohari 82 14 Sep 2006 ._Temporary Items
-rwxr-xr-x 1 rjohari rjohari 945181 22 Mar 09:44 ALL.dbf
drwxr-xr-x 1 rjohari rjohari 16384 22 Mar 13:27 DISPO
-rwxr-xr-x 1 rjohari rjohari 4608 28 Feb 14:04 HFGLEND.CDX
-rwxr-xr-x 1 rjohari rjohari 6172 28 Feb 14:04 HFGLEND.DBF
-rwxr-xr-x 1 rjohari rjohari 4608 28 Feb 14:04 HFMESA.CDX
-rwxr-xr-x 1 rjohari rjohari 6172 28 Feb 14:04 HFMESA.DBF
-rwxr-xr-x 1 rjohari rjohari 4608 28 Feb 14:04 HFPHENX.CDX
-rwxr-xr-x 1 rjohari rjohari 6172 28 Feb 14:04 HFPHENX.DBF
-rwxr-xr-x 1 rjohari rjohari 6435 7 Nov 15:15 HFUND.DBF
-rwxr-xr-x 1 rjohari rjohari 642844 7 Nov 15:15 OSM.DBF
-rwxr-xr-x 1 rjohari rjohari 142848 21 Mar 19:57 OSMH.CDX
-rwxr-xr-x 1 rjohari rjohari 1820024 21 Mar 19:58 OSMH.DBF
-rwxr-xr-x 1 rjohari rjohari 12288 21 Mar 19:42 OSMT.CDX
-rwxr-xr-x 1 rjohari rjohari 3072 16 Nov 14:03 TEST.CDX
-rwxr-xr-x 1 rjohari rjohari 12804 16 Nov 14:51 TEST.DBF
-rwxr-xr-x 1 rjohari rjohari 7116 21 Sep 17:02 TEST_RUN.DBF
-rwxr-xr-x 1 rjohari rjohari 4608 2 Mar 13:44 TRANSBX.CDX
-rwxr-xr-x 1 rjohari rjohari 714 21 Mar 17:13 TRANSBX.DBF
-rwxr-xr-x 1 rjohari rjohari 191 31 Oct 17:53 TRANSDIR.DBF
drwxr-xr-x 1 rjohari rjohari 16384 14 Sep 2006 Temporary Items
-rwxr-xr-x 1 rjohari rjohari 4608 21 Feb 21:00 dmam.CDX
-rwxr-xr-x 1 rjohari rjohari 22752 21 Feb 21:01 dmam.DBF
-rwxr-xr-x 1 rjohari rjohari 54784 22 Mar 08:25 novastar.CDX
-rwxr-xr-x 1 rjohari rjohari 6490610 22 Mar 08:25 novastar.DBF
-rwxr-xr-x 1 rjohari rjohari 44032 3 Nov 13:53 osm.CDX
-rwxr-xr-x 1 rjohari rjohari 573 20 Sep 2006 osm_move.FXP
-rwxr-xr-x 1 rjohari rjohari 407 20 Sep 2006 osm_move.prg
-rwxr-xr-x 1 rjohari rjohari 40448 29 Dec 15:41 osma.CDX
-rwxr-xr-x 1 rjohari rjohari 486992 29 Dec 15:41 osma.DBF
-rwxr-xr-x 1 rjohari rjohari 4608 21 Mar 16:05 osmf.CDX
-rwxr-xr-x 1 rjohari rjohari 132180 21 Mar 16:05 osmf.DBF
-rwxr-xr-x 1 rjohari rjohari 89088 28 Feb 18:57 osmj.CDX
-rwxr-xr-x 1 rjohari rjohari 1098794 28 Feb 18:57 osmj.DBF
-rwxr-xr-x 1 rjohari rjohari 31232 21 Mar 19:43 osmn.CDX
-rwxr-xr-x 1 rjohari rjohari 319534 21 Mar 19:43 osmn.DBF
-rwxr-xr-x 1 rjohari rjohari 31744 21 Mar 19:22 osmp.CDX
-rwxr-xr-x 1 rjohari rjohari 372590 21 Mar 19:22 osmp.DBF
-rwxr-xr-x 1 rjohari rjohari 659424 21 Mar 19:42 osmt.dbf
-rwxr-xr-x 1 rjohari rjohari 314 7 Nov 11:02 transbr2.DBF
-rwxr-xr-x 1 rjohari rjohari 314 7 Nov 17:19 transbranch.DBF
-rwxr-xr-x 1 rjohari rjohari 11264 21 Sep 16:47 warm092106.xls
On 3/22/07 12:31 PM, "Tijnema !" <tijnema@gmail.com> wrote:
> On 3/22/07, Rahul Sitaram Johari <sleepwalker@rahulsjohari.com> wrote:
>>
>> Well chmod is certainly not doing anything. I tried that to begin with. I
>> don't get an error, but it doesn't change any permissions. Just doesn't do
>> anything to the permissions of the file/folder. Like it's just ignored.
>>
>> I did it as root using sudo.
>
> Can you post the log of the "ls -la Share" command here?
>
> Tijnema
>>
>>
>> On 3/22/07 12:18 PM, "Tijnema !" <tijnema@gmail.com> wrote:
>>
>>> On 3/22/07, Rahul Sitaram Johari <sleepwalker@rahulsjohari.com> wrote:
>>>>
>>>> Ave,
>>>>
>>>> "Or make sure the user apache runs on has write access to the share."
>>>>
>>>> That's the problem I'm facing. I'm not sure how to do that. If
>>>> I'm not
>>>> mistaken, Apache runs as user "nobody" on my Mac, but I don't know
>>>> how to
>>>> give that user write access on the Windows Machine.
>>>>
>>>> Yes, it is quite complicated :(
>>>
>>> I believe this has nothing to do with your windows machine, but with
>>> the mount on your Mac. I'm not very familiar with Mac OS X (Although i
>>> have installed it) I know it's based on a linux kernel, and uses same
>>> mount tools. I think a simple chmod 777 to the mount folder would do
>>> the job.
>>> so if you have it mounted at /Share
>>> chmod 777 /Share
>>> I believe that windows mounts everything with chmod value 777, so that
>>> shouldn't be a problem.
>>>
>>> Tijnema
>>>>
>>>>
>>>>> On 3/22/07, Rahul Sitaram Johari <sleepwalker@rahulsjohari.com> 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@192.168.1.2/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
>>>>>
>>>>> You could chmod the whole share to 777 but that might give problems!
>>>>> Or make sure the user apache runs on has write access to the share.
>>>>> But normal each file is set with permission 755, means that only the
>>>>> owner can write to it.
>>>>>
>>>>> I'm not able to give a real fix right now, but it is quite complicated :(
>>>>>
>>>>> Tijnema
>>>>>>
>>>>>>
>>>>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>>> Rahul Sitaram Johari
>>>>>> CEO, Twenty Four Seventy Nine Inc.
>>>>>>
>>>>>> W: http://www.rahulsjohari.com
>>>>>> E: sleepwalker@rahulsjohari.com
>>>>>>
>>>>>> ³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
>>>
>>
>>
>>