Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » /<project>/build folder access denied(Eclipse creates folders which can't be viewed or deleted)
/<project>/build folder access denied [message #1827810] Sun, 24 May 2020 14:02 Go to next message
Eclipse UserFriend
Hi,

I'm having an annoying problem deleting projects created by eclipse under eclipse-workspace.

Eclipse seems to create and access these folders fine (at least, it can build and run projects) but when it comes time to delete a project (and delete folders on disk) it has problems. Even when deleting files on disk through eclipse ("this action cannot be undone") it encounters permission denied.

The folder causing the problems is /<approot>/build/default. Even an administrator-level user has no read permissions on the folder -- I can't even inspect the permissions set on the folder to debug it.

Using PowerShell, I've run the Enable-LocalUser for every user on my machine, and I still have no permissions.

Why (and... how?) is eclipse creating a directory that is locked from (seemingly) every user on my machine? How do I fix it such that I can delete these directories and files? How do I prevent eclipse from doing this in the future?

I did a very basic install of eclipse, although it decided to install itself into C:\Users\Erik Schafer\eclipse\cpp-2020-03 which is weird enough (why not programFiles or programFiles(x86)?) that it might be a clue.

Thanks,
Erik

Re: /<project>/build folder access denied [message #1828003 is a reply to message #1827810] Thu, 28 May 2020 18:02 Go to previous message
Eclipse UserFriend
I'm assuming you are using Windows.
In general the admin can take ownership of any file.
That means you can't prevent the admin from accessing any file.
It doesn't seem possible for Eclipse to have more privileges than the admin.

It may mean the directory (or it's parent) or permissions has been clobbered.
I know this can happen under Linux.
I can't currently run Windows to experiment.
The security settings in Windows let deny to override allow.
This link may be helpful: https://superuser.com/a/129738

[Updated on: Sun, 31 May 2020 08:39] by Moderator

Previous Topic:EXTREME slowness with CDT editor / indexer
Next Topic:can't run debugger for AVR using ubuntu OS
Goto Forum:
  


Current Time: Wed Apr 30 14:01:11 EDT 2025

Powered by FUDForum. Page generated in 0.07177 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top