Cant Disable Read-Only status on Folders

G

GreenBoy

Hi

I have a problem that a PHP script i am running is trying to write
session data to a folder under 'C:\Documents and Settings\Administrator
\Local Settings\Temp\php\session' but i am getting an error saying
that permission to the folder is denied.

I have seen many posts where people say that a folders permission
status doesnt matter it just the files in it, but there are no files
in it and the script is trying to write a session file to the folder -
therefore the Read-Only status matters.

Can any one help please.

I am running WinXP PRO, SP2 with all latest patches.

Thanks

GreenBoy
 
P

Poprivet

GreenBoy said:
Hi

I have a problem that a PHP script i am running is trying to write
session data to a folder under 'C:\Documents and
Settings\Administrator \Local Settings\Temp\php\session' but i am
getting an error saying that permission to the folder is denied.

I have seen many posts where people say that a folders permission
status doesnt matter it just the files in it, but there are no files
in it and the script is trying to write a session file to the folder -
therefore the Read-Only status matters.

Can any one help please.

I am running WinXP PRO, SP2 with all latest patches.

Thanks

GreenBoy

That's an arguementative way to start; and one which I won't pursue since
you're apparenlty not being open minded about it.

Sorry,

Pop`
 
G

GreenBoy

Pop

Thanks for taking the time for replying, however Im not sure that this
is 'argumentative'. However in the spirit of the web - i appologise if
i have offended.

(Prior to my post i had spent 6 hours trying to rectify this issue, so
i was not perhaps in the best frame of mind for this)

However my situation seems quite clear - for some reason i cannot
write to a folder, not to a particular file. (The file is being
created by the PHP script)

As i noted at the top i have seen many posts by Googling the web and
the user groups that all seem to suggest that folders are not the
issue and that its to do with the files in them... this cannot be the
answer in this case and i am therefore looking for a way to ensure
that windows remembers the state of the folders Read-Only option
between uses on the the computer. Thats all.

Is there a hack of the registry or some ofther setting i am missing to
acheive this, or is this realy it - so live with it. (cant believe
this is the case as people do successfully run web systems on their
local host and therefore need to write session data to folders.)

I should point out that i clean installed windows a few months ago,
prior to which i had my systems running ok - including using my
machine as a test bed for web development which required that session
data be writen to a temp folder - as i am trying to do now - and this
was completely successful - therefore i believe this to be a windows
config problem - and i need help

Any help would be greatfully recieved.

GreenBoy
 
H

HeyBub

GreenBoy said:
Pop

Thanks for taking the time for replying, however Im not sure that this
is 'argumentative'. However in the spirit of the web - i appologise if
i have offended.

(Prior to my post i had spent 6 hours trying to rectify this issue, so
i was not perhaps in the best frame of mind for this)

However my situation seems quite clear - for some reason i cannot
write to a folder, not to a particular file. (The file is being
created by the PHP script)

As i noted at the top i have seen many posts by Googling the web and
the user groups that all seem to suggest that folders are not the
issue and that its to do with the files in them... this cannot be the
answer in this case and i am therefore looking for a way to ensure
that windows remembers the state of the folders Read-Only option
between uses on the the computer. Thats all.

Is there a hack of the registry or some ofther setting i am missing to
acheive this, or is this realy it - so live with it. (cant believe
this is the case as people do successfully run web systems on their
local host and therefore need to write session data to folders.)

I should point out that i clean installed windows a few months ago,
prior to which i had my systems running ok - including using my
machine as a test bed for web development which required that session
data be writen to a temp folder - as i am trying to do now - and this
was completely successful - therefore i believe this to be a windows
config problem - and i need help

Any help would be greatfully recieved.

Concept check:

The "Read-only" attribute has NOTHING to do with "permission." They are
completely different concepts. Changing permissions does not affect the
read-only attribute for a file (or a folder) and changing the read-only
attribute does not influence permissions.
 
G

GreenBoy

Concept check:

The "Read-only" attribute has NOTHING to do with "permission." They are
completely different concepts. Changing permissions does not affect the
read-only attribute for a file (or a folder) and changing the read-only
attribute does not influence permissions.- Hide quoted text -

- Show quoted text -

HeyBub

the erro i am getting is this

Warning: session_start() [function.session-start]: open(C:
\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\session
\sess_au6q0359v429csjhoo9g1v9505, O_RDWR) failed: Permission denied
(13)

does this help at all?

GreenBoy
 
J

Jim

GreenBoy said:
Concept check:

The "Read-only" attribute has NOTHING to do with "permission." They are
completely different concepts. Changing permissions does not affect the
read-only attribute for a file (or a folder) and changing the read-only
attribute does not influence permissions.- Hide quoted text -

- Show quoted text -

HeyBub

the erro i am getting is this

Warning: session_start() [function.session-start]: open(C:
\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\session
\sess_au6q0359v429csjhoo9g1v9505, O_RDWR) failed: Permission denied
(13)

does this help at all?

GreenBoy
It means that the permissions set on the folder do not allow writing to the
folder.
In the case of a folder, XP ignores the read only attribute.
Instead, XP uses the permissions set on the folder which you can set via the
security tab.
Jim
 
N

Nightowl

GreenBoy said:
the erro i am getting is this

Warning: session_start() [function.session-start]: open(C:
\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\session
\sess_au6q0359v429csjhoo9g1v9505, O_RDWR) failed: Permission denied
(13)

does this help at all?


Hi GreenBoy

Are you running the script from an account with admin privileges, or a
limited user account?
 
G

GreenBoy

GreenBoy said:
the erro i am getting is this
Warning: session_start() [function.session-start]: open(C:
\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\session
\sess_au6q0359v429csjhoo9g1v9505, O_RDWR) failed: Permission denied
(13)
does this help at all?

Hi GreenBoy

Are you running the script from an account with admin privileges, or a
limited user account?

Thanks for your responces people - i have solved it.

The problem was that the folder i was writing to was literaly the only
one that did not havve the Users permissions set up... Admin etc was
all set up with Read Write etc but this folder did not have the
Users(FRED\Users) permissions at all - once this set of permissions
were added everything was fine... bloody anoying as i thought all
folders inhereted their parents permissions...

you learn something every day.

Thanks again to all who responded.

GreenBoy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top