Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Permission issue withe windows 7 and Momentics 6.3.2: (23 Items)
   
Permission issue withe windows 7 and Momentics 6.3.2  
Hi:

I'm having issues with my build. I'm using Momentics 6.3.2 on windows 7 64 bit. Every time I build I get permission 
denied on certain folders and files that the make file creates or tries to access. My teammates don't have the same 
issue on windows XP.

I searched the forum and found the problem can be removed by forcing the permission using the "CACLS" command. This 
works but not every time. Also it doesn't work when a permission is denied on  a folder. 

I also tried changing the permission from the windows explorer but that doesn't change anything. 

Anyway one know how I can permanently fix this issue? 

Not sure what else I can try. 

Thanks
Re: Permission issue withe windows 7 and Momentics 6.3.2  
It only would happened if you try to change the installation. Are you running make install trying to override your 
installation?

On 05/03/2011 09:46 AM, Mohamed El Helaly wrote:
> Hi:
> 
> I'm having issues with my build. I'm using Momentics 6.3.2 on windows 7 64 bit. Every time I build I get permission 
denied on certain folders and files that the make file creates or tries to access. My teammates don't have the same 
issue on windows XP.
> 
> I searched the forum and found the problem can be removed by forcing the permission using the "CACLS" command. This 
works but not every time. Also it doesn't work when a permission is denied on  a folder. 
> 
> I also tried changing the permission from the windows explorer but that doesn't change anything. 
> 
> Anyway one know how I can permanently fix this issue? 
> 
> Not sure what else I can try. 
> 
> Thanks
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post85348
> 
Re: Permission issue withe windows 7 and Momentics 6.3.2  
No. Not messing with the installation at all. 
The issue is I don't have permission on files and folders that I create in my own personal project/build. I'm not trying
 to access any installation files. 

 
Re: Permission issue withe windows 7 and Momentics 6.3.2  
Really? Where is you workspace? Are you starting ide as admin for some reason? 

On 05/03/2011 11:01 AM, Mohamed El Helaly wrote:
> No. Not messing with the installation at all. 
> The issue is I don't have permission on files and folders that I create in my own personal project/build. I'm not 
trying to access any installation files. 
> 
>  
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post85351
> 
Re: Permission issue withe windows 7 and Momentics 6.3.2  
No I don't think I'm starting as admin. I'm just using the IDE to edit the code but I'm not building through it.

I'm building using the QNX environment from the dos command prompt too (I have the same issue with cygwin shell). So I'm
 not building in momentics. 

My workspace is in "C:/". 

I know its strange. I have no clue whats causing this. 
Re: Permission issue withe windows 7 and Momentics 6.3.2  
Don't use C: as workspace, it is really bad. Use something like C:/Development/workspace

On 05/03/2011 11:14 AM, Mohamed El Helaly wrote:
> No I don't think I'm starting as admin. I'm just using the IDE to edit the code but I'm not building through it.
> 
> I'm building using the QNX environment from the dos command prompt too (I have the same issue with cygwin shell). So 
I'm not building in momentics. 
> 
> My workspace is in "C:/". 
> 
> I know its strange. I have no clue whats causing this. 
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post85353
> 
RE: Permission issue withe windows 7 and Momentics 6.3.2  
Windows 7 has ACL control over certain folders, e.g. %WINDIR%,
%PROGRAMDIR%. Make sure you don't create you files/folders under those
folders like "C:\Program Files".

You can change the default ACL on folders or even on any drive, please
see this article for details.

http://msdn.microsoft.com/en-us/magazine/cc982153.aspx

-----Original Message-----
From: Mohamed El Helaly [mailto:community-noreply@qnx.com] 
Sent: May-03-11 11:14 AM
To: general-ide
Subject: Re: Permission issue withe windows 7 and Momentics 6.3.2

No I don't think I'm starting as admin. I'm just using the IDE to edit
the code but I'm not building through it.

I'm building using the QNX environment from the dos command prompt too
(I have the same issue with cygwin shell). So I'm not building in
momentics. 

My workspace is in "C:/". 

I know its strange. I have no clue whats causing this. 

Re: RE: Permission issue withe windows 7 and Momentics 6.3.2  
Sorry. My workspace is C:/QNXWorkspace. 
I was talking about the path of checked out project are in C:/ . The workspace project points to that path. 

Also I'm not using program files. All files are in C:/Directory. 

Re: Permission issue withe windows 7 and Momentics 6.3.2  
Change ACL then on your workspace to have full access for yourself

On 05/03/2011 11:20 AM, Mohamed El Helaly wrote:
> Sorry. My workspace is C:/QNXWorkspace. 
> I was talking about the path of checked out project are in C:/ . The workspace project points to that path. 
> 
> Also I'm not using program files. All files are in C:/Directory. 
> 
> 
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post85356
> 
Re: Permission issue withe windows 7 and Momentics 6.3.2  
I have administrative access to all files. I changed the ACL to myself except I couldn't change it for .sys files and 
program files. 

I already had full control (permission wise) on the workspace. 

So it still gives me permission denied on one of the builds. I still have to use CACLS to get it to work. 

No luck yet. 

RE: Permission issue withe windows 7 and Momentics 6.3.2  
Could that be the case you have some hidden files in your workspace?
Does a "make clean" remove all the build output artefacts? Do you see
permission deny error when you do a "make clean"?

-----Original Message-----
From: Mohamed El Helaly [mailto:community-noreply@qnx.com] 
Sent: May-03-11 11:39 AM
To: general-ide
Subject: Re: Permission issue withe windows 7 and Momentics 6.3.2

I have administrative access to all files. I changed the ACL to myself
except I couldn't change it for .sys files and program files. 

I already had full control (permission wise) on the workspace. 

So it still gives me permission denied on one of the builds. I still
have to use CACLS to get it to work. 

No luck yet. 

Re: Permission issue withe windows 7 and Momentics 6.3.2  
Are you currently running or debugging you application while trying to 
do that?  Is another application holding on o one of the file handles?

Rodney

On 03/05/2011 11:45 AM, Andy Jin wrote:
> Could that be the case you have some hidden files in your workspace?
> Does a "make clean" remove all the build output artefacts? Do you see
> permission deny error when you do a "make clean"?
>
> -----Original Message-----
> From: Mohamed El Helaly [mailto:community-noreply@qnx.com]
> Sent: May-03-11 11:39 AM
> To: general-ide
> Subject: Re: Permission issue withe windows 7 and Momentics 6.3.2
>
> I have administrative access to all files. I changed the ACL to myself
> except I couldn't change it for .sys files and program files.
>
> I already had full control (permission wise) on the workspace.
>
> So it still gives me permission denied on one of the builds. I still
> have to use CACLS to get it to work.
>
> No luck yet.
>
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post85359
>
Re: Permission issue withe windows 7 and Momentics 6.3.2  
A make clean doesn't cause any permission errors. There are no hidden files either.  

I only have the build window and my editor open. Closing the editor (Momentics IDE) doesn't affect anything. 

RE: Permission issue withe windows 7 and Momentics 6.3.2  
Are those folders/files you are having permission problem on inside your
workspace "Read Only"?

-----Original Message-----
From: Mohamed El Helaly [mailto:community-noreply@qnx.com] 
Sent: May-03-11 12:41 PM
To: general-ide
Subject: Re: Permission issue withe windows 7 and Momentics 6.3.2

A make clean doesn't cause any permission errors. There are no hidden
files either.  

I only have the build window and my editor open. Closing the editor
(Momentics IDE) doesn't affect anything. 

Re: RE: Permission issue withe windows 7 and Momentics 6.3.2  
Yes they are. But I don't do it on purpose. By default they are created read only. 

Thats why using the "calcs" command forces me to be able to write to that folder. 

So I guess the question is why is it read-only by default?

Re: Permission issue withe windows 7 and Momentics 6.3.2  
Are you checking out your project from perforce or something like that?

On 05/03/2011 12:55 PM, Mohamed El Helaly wrote:
> Yes they are. But I don't do it on purpose. By default they are created read only. 
> 
> Thats why using the "calcs" command forces me to be able to write to that folder. 
> 
> So I guess the question is why is it read-only by default?
> 
> 
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post85365
> 
Re: Permission issue withe windows 7 and Momentics 6.3.2  
I'm using tortoise SVN to check out my project.
RE: Permission issue withe windows 7 and Momentics 6.3.2  
They have svn:needs-lock property set, right?

You can use the TortoiseSVN -> Properties to modify files properties.

Also check your "Settings -> General -> Edit" tab to see if you can
diable the auto-propery settting.

-----Original Message-----
From: Mohamed El Helaly [mailto:community-noreply@qnx.com] 
Sent: May-03-11 1:00 PM
To: general-ide
Subject: Re: Permission issue withe windows 7 and Momentics 6.3.2

I'm using tortoise SVN to check out my project.


Re: Permission issue withe windows 7 and Momentics 6.3.2  
it doesn't have "svn:needs-lock property" .

Also the auto property (TortoiseSvn-<General>Settings->Edit ) is not enabled by default (i.e. its hashed out) in the 
configuration file 
"# enable-auto-props = yes"
RE: Permission issue withe windows 7 and Momentics 6.3.2  
I don't know what else I can suggest because I don't use Tortoise SVN.
In Tortoise SVN Help, there is a section 4.21 talking about svn locking
and why your checkout is read-only by default.


-----Original Message-----
From: Mohamed El Helaly [mailto:community-noreply@qnx.com] 
Sent: May-03-11 1:27 PM
To: general-ide
Subject: Re: Permission issue withe windows 7 and Momentics 6.3.2

it doesn't have "svn:needs-lock property" .

Also the auto property (TortoiseSvn-<General>Settings->Edit ) is not
enabled by default (i.e. its hashed out) in the configuration file 
"# enable-auto-props = yes"

Re: RE: Permission issue withe windows 7 and Momentics 6.3.2  
Thanks for your help. 

Looking through toroise and nothing seems to suggest why the files are read only. I'll keep digging. 

Re: RE: Permission issue withe windows 7 and Momentics 6.3.2  
It sounds like I'm having this same exact problem with Momentics 6.5 and windows 7.  I don't think it has anything to do
 with SVN, because I created a new workspace not controlled by SVN and still get the permission denied error.

Sorry I don't have any ideas for a solution, but I don't think it has anything to do with SVN.
Re: RE: Permission issue withe windows 7 and Momentics 6.3.2  
Probably worth starting a new topic for this since you believe it does not have anything to do with previous issue, 
thread is from 2011 (which may cause people to skip it) and it is a different version of Momentics.
When you do start the new topic, mention how you installed Momentics (as administrator or non-administrator).  Which 
directory you are trying to create your workspace in and your permissions in that directory.

- Dave