PDA

View Full Version : Set Access function



NewsArchive
08-06-2010, 01:40 AM
Friedrich,

I was testing an install on a new Win7 machine and my default data folder is under
ProgramData. I was getting a lot of error code 5 (access denied), then applied
the function to the folder's contents using (S-1-10) and had the check box grant
all selected. Still got the error. I then checked a few more boxes (allowing
read-write specifically) and the install worked.

What does "grant all" not do? Is it my incorrect assumption that it does not
provide full access? What is different than the other permissions?

--
Russell B. Eggen
www.radfusion.com
Clarion developers: www.radfusion.com/devs.htm

NewsArchive
08-06-2010, 01:40 AM
Russ,

> I was testing an install on a new Win7 machine and my default data folder
> is under ProgramData. I was getting a lot of error code 5 (access
> denied), then applied the function to the folder's contents using (S-1-10)
> and had the check box grant all selected. Still got the error. I then
> checked a few more boxes (allowing read-write specifically) and the
> install worked.
>
> What does "grant all" not do? Is it my incorrect assumption that it does
> not provide full access? What is different than the other permissions?

What kind of security identifier is (S-1-10)? I can't find it in the list
of known SIDs.

Friedrich

NewsArchive
08-06-2010, 01:41 AM
Sorry, typo. (S-1-1-0)

--
Russell B. Eggen
www.radfusion.com
Clarion developers: www.radfusion.com/devs.htm

NewsArchive
08-06-2010, 01:42 AM
>
> Sorry, typo. (S-1-1-0)
>

:)

"Generic All" should be enough to set all (execute, write, read)
permissions. Just tested it and it worked fine here on XP and WIn7 64-bit.
I created a c:\test folder and marked the "Generic All" option.

Perhaps "something" blocked this on your Win7 machine, I don't know. If the
function succeeds, the %_SB_ERRORCODE% return value is zero.

Friedrich

NewsArchive
08-06-2010, 01:43 AM
I can get it to work if the data installation path is C:\MyData. But error code 5
everywhere if its C:\ProgramData\Me\Product\Data. I set the additional stuff
besides "Generic All" and it worked.

Brand new Win7 machine, only thing installed on it (besides the MS updates) is
Adobe Reader 9. No settings altered, UAC full on. I was going though looking at
permissions until I slapped my wrist and scolded myself, "You won't be able to do
that on a user's machine!"

I did get it to work - just wondering if Generic All is supposed to do everything.

--
Russell B. Eggen
www.radfusion.com
Clarion developers: www.radfusion.com/devs.htm

NewsArchive
08-06-2010, 01:45 AM
> I can get it to work if the data installation path is C:\MyData. But error code 5
> everywhere if its C:\ProgramData\Me\Product\Data. I set the additional stuff
> besides "Generic All" and it worked.

Russ,

Just curious, are you saying - this was your initial Set Access control in
SetbupBuilder as shown in screenshot - and it didn't read write to the
<Data> folder?

David

--
From David Troxell - Encourager Software
Microsoft Forums NNTP Bridge - Instructions to use
http://profileexchanges.com/blog/?p=397