Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - cp and permission: (6 Items)
   
cp and permission  
I'm using Windows7 64 bit with IDE 6.4.1 (also with 4.7 with same result).  We have projects with custom makefile that 
uses the cp command ( $(QNX_HOST)/usr/bin/cp  ). If the 6.4.1 tools are used all is fine, but if the 6.3.2 tools are 
used the destination file ends up having no permission (for all users) and becomes unreadable and unwritetable.



RE: cp and permission  
Did you try using  " -p, --preserve               preserve file
attributes if possible" flag?

Thanks  
 
Mark
__________________________________________________
 
 


Mark Reeder       

Harris/RF Communications
1680 University Avenue
Rochester, N.Y. 14610
Tel:  (585)242-3455
Email:  mreede01@harris.com
-----Original Message-----
From: Mario Charest [mailto:community-noreply@qnx.com] 
Sent: Wednesday, June 30, 2010 2:54 PM
To: general-ide
Subject: cp and permission


I'm using Windows7 64 bit with IDE 6.4.1 (also with 4.7 with same
result).  We have projects with custom makefile that uses the cp command
( $(QNX_HOST)/usr/bin/cp  ). If the 6.4.1 tools are used all is fine,
but if the 6.3.2 tools are used the destination file ends up having no
permission (for all users) and becomes unreadable and unwritetable.







_______________________________________________

General
http://community.qnx.com/sf/go/post58244
RE: cp and permission  
No change

-----Message d'origine-----
De : Mark reeder [mailto:community-noreply@qnx.com] 
Envoyé : 30 juin 2010 15:31
À : general-ide
Objet : RE: cp and permission

Did you try using  " -p, --preserve               preserve file
attributes if possible" flag?

Thanks  
 
Mark
__________________________________________________
 
 


Mark Reeder       

Harris/RF Communications
1680 University Avenue
Rochester, N.Y. 14610
Tel:  (585)242-3455
Email:  mreede01@harris.com
-----Original Message-----
From: Mario Charest [mailto:community-noreply@qnx.com] 
Sent: Wednesday, June 30, 2010 2:54 PM
To: general-ide
Subject: cp and permission


I'm using Windows7 64 bit with IDE 6.4.1 (also with 4.7 with same
result).  We have projects with custom makefile that uses the cp command
( $(QNX_HOST)/usr/bin/cp  ). If the 6.4.1 tools are used all is fine,
but if the 6.3.2 tools are used the destination file ends up having no
permission (for all users) and becomes unreadable and unwritetable.







_______________________________________________

General
http://community.qnx.com/sf/go/post58244




_______________________________________________

General
http://community.qnx.com/sf/go/post58253

Re: cp and permission  
I had a similar problem and used "icacls ... /reset" to fix.  I determined that the "cp" command was not preserving the 
copied file's access control list (ACL).  You can use the "icacls" to display and compare the ACLs of the source and 
destination file.  The solution I settled on is to "icacls dest-file /reset" after the "cp" command.  This resets the 
file's ACL to the default permissions, which includes read / write in my setup.

FWIW, I think it's a problem with QNX630's CYGWIN distro running on Windows 7, therefore not a problem on subsequent QNX
 versions that drop CYGWIN.

Hope this helps.
Re: cp and permission  
I experienced the same issue and discovered that the cygwin version of cp.exe uses permission for "everyone".  When I 
give "everyone" permission to my files, cp.exe also retains the "everyone" permission in the copied file.  If icacls is 
not a viable solution for you, you could try this workaround.
RE: cp and permission  
Thanks, what we have done is change our makefile to use cp from 6.4.1 ;-)

-----Message d'origine-----
De : Rex Lam [mailto:community-noreply@qnx.com] 
Envoyé : 4 août 2010 13:53
À : general-ide
Objet : Re: cp and permission

I experienced the same issue and discovered that the cygwin version of cp.exe uses permission for "everyone".  When I 
give "everyone" permission to my files, cp.exe also retains the "everyone" permission in the copied file.  If icacls is 
not a viable solution for you, you could try this workaround.



_______________________________________________

General
http://community.qnx.com/sf/go/post61609