PC Review


Reply
Thread Tools Rate Thread

access denied creating executable in local folder with adminstrator account

 
 
eestimpson
Guest
Posts: n/a
 
      8th Feb 2006
I'm having a "freakish" problem trying to create an executable in a
particular folder of my local c: drive. Using a c# compiler I was
trying to build an executable and got the error "access denied." I
started by looking at the folder properties and saw that the read only
flag was set for the folder. I tried clearing that, but without effect
(I later found that this is a problem in Windows XP; it always shows
that flag when you view a folder's properties).

The more I investigated the problem, the stranger it got. First, it
makes no difference what I try naming the executable, or where I try
making it from. The result is always the same, "Access Denied." For
example, I've tried creating a text file and renaming it to t.exe,
copying from the console at a command prompt, copying any .exe from
another folder, and nothing works.

I've even tried copying the folder to another folder. Here, what's
interesting is that by itself, that works. But there's a twist. Here
is the relative path of the folder in which I need to create the .exe
file:
C:\...\src\Main\StartUp\Project\obj\Release

I can't create an executable until I go back to:
C:\...\src\Main\StartUp

If I copy the Debug folder to a new location, I can create an .exe
file. If I copy obj or Project, the same. But if I copy StartUp, I
can't create an .exe in any of it's subfolders (although in the StartUp
folder itself it is no problem).

A couple of final points. The folders were created by extracting a Zip
file using WinZip. I get an error when I try extracting the files from
WinZip saying that "Access Denied" when it's trying to write an
executable to the C:\...\src\Main\StartUp\Project\obj\Release folder.
If I extract to a new folder, it does the same thing. If I use another
tool like 7-Zip, it does the same.

 
Reply With Quote
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      8th Feb 2006

"eestimpson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I'm having a "freakish" problem trying to create an executable in a
> particular folder of my local c: drive. Using a c# compiler I was
> trying to build an executable and got the error "access denied." I
> started by looking at the folder properties and saw that the read only
> flag was set for the folder. I tried clearing that, but without effect
> (I later found that this is a problem in Windows XP; it always shows
> that flag when you view a folder's properties).
>
> The more I investigated the problem, the stranger it got. First, it
> makes no difference what I try naming the executable, or where I try
> making it from. The result is always the same, "Access Denied." For
> example, I've tried creating a text file and renaming it to t.exe,
> copying from the console at a command prompt, copying any .exe from
> another folder, and nothing works.
>
> I've even tried copying the folder to another folder. Here, what's
> interesting is that by itself, that works. But there's a twist. Here
> is the relative path of the folder in which I need to create the .exe
> file:
> C:\...\src\Main\StartUp\Project\obj\Release
>
> I can't create an executable until I go back to:
> C:\...\src\Main\StartUp
>
> If I copy the Debug folder to a new location, I can create an .exe
> file. If I copy obj or Project, the same. But if I copy StartUp, I
> can't create an .exe in any of it's subfolders (although in the StartUp
> folder itself it is no problem).
>
> A couple of final points. The folders were created by extracting a Zip
> file using WinZip. I get an error when I try extracting the files from
> WinZip saying that "Access Denied" when it's trying to write an
> executable to the C:\...\src\Main\StartUp\Project\obj\Release folder.
> If I extract to a new folder, it does the same thing. If I use another
> tool like 7-Zip, it does the same.
>


- Check if the problem is restricted to executables or if
it applies to all types of files.
- Check the permissions of the problem folder, by
running this command from the Command Prompt:
cacls "c:\Some Folder\Some Subfolder"


 
Reply With Quote
 
EarthStrapped
Guest
Posts: n/a
 
      9th Feb 2006
The problem is restricted to executables.

Here are the acl's for the a typical folder where I can create an
executable:
BUILTIN\Administrators:F
BUILTIN\AdministratorsOI)(CI)(IO)F
NT AUTHORITY\SYSTEM:F
NT AUTHORITY\SYSTEMOI)(CI)(IO)F
[MYCOMPUTERNAME]\estimpson:F
CREATOR OWNEROI)(CI)(IO)F
BUILTIN\Users:R
BUILTIN\UsersOI)(CI)(IO)(special access
GENERIC_READ
GENERIC_EXECUTE

BUILTIN\UsersCI)(special access
FILE_APPEND_DATA

BUILTIN\UsersCI)(special access
FILE_WRITE_DATA

The info is exactly the same for the folders where I can not create
executables.

 
Reply With Quote
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      10th Feb 2006

"EarthStrapped" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> The problem is restricted to executables.
>
> Here are the acl's for the a typical folder where I can create an
> executable:
> BUILTIN\Administrators:F
> BUILTIN\AdministratorsOI)(CI)(IO)F
> NT AUTHORITY\SYSTEM:F
> NT AUTHORITY\SYSTEMOI)(CI)(IO)F
> [MYCOMPUTERNAME]\estimpson:F
> CREATOR OWNEROI)(CI)(IO)F
> BUILTIN\Users:R
> BUILTIN\UsersOI)(CI)(IO)(special access
> GENERIC_READ
> GENERIC_EXECUTE
>
> BUILTIN\UsersCI)(special access
> FILE_APPEND_DATA
>
> BUILTIN\UsersCI)(special access
> FILE_WRITE_DATA
>
> The info is exactly the same for the folders where I can not create
> executables.
>


I wouild now run this little test:
1. Create a test folder.
2. Confirm that the problem exists.
3. Copy c:\windows\system32\xcopy.exe to the test folder.
4. Rename xcopy.exe to xtest.exe
4. Confirm that the problem persists, by running xtest.exe
5. Run these commands:
cacls "c:\TestFolder" /e /t /c /r Users
cacls "c:\TestFolder" /e /t /c Users:F
6. Confirm that the problem persists, by running xtest.exe.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
access denied when creating a local port Joeg51 Windows Vista Networking 0 5th Feb 2009 12:39 AM
Directory Access denied while Adminstrator Bernard Windows Vista Administration 1 16th Mar 2008 07:26 PM
Access denied on a domain user in a local account =?Utf-8?B?Sm9zZXBoX3Zhbg==?= Microsoft Access Security 1 4th Aug 2005 05:33 PM
access to a local folder is denied =?Utf-8?B?SG93YXJk?= Windows XP Networking 2 28th Mar 2004 03:26 PM
access to local resources denied when using server account with admin rights Eric Green Microsoft Access 1 8th Aug 2003 04:04 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:24 PM.