[p4] no write permissions to files after p4 sync

Todd Short (tshort) tshort at cisco.com
Fri Jun 8 04:56:29 PDT 2007


This is by design. 

The files are marked read-only to prevent you from making changes
without checking them out. If you want to make changes so that you can
submit them to the source database, your need to 'p4 edit' them first.
Using 'p4 edit' allows Perforce to keep track of who is editing what
files and makes various operations easier.

If for some reason, you need a file to always be writable (which is
usually an exception), 'p4 edit' the file, then use the 'p4 reopen -t'
command to change to type to a writable type (something+w), and then 'p4
submit' the file. If you are losing execution privilege, there is also a
+x option to enable that.

--
-Todd Short
tshort at cisco.com
// "One if by land, two if by sea, three if by the Internet."
 

> -----Original Message-----
> From: perforce-user-bounces at perforce.com 
> [mailto:perforce-user-bounces at perforce.com] On Behalf Of 
> Rashmi Nivarthy
> Sent: Friday, June 08, 2007 5:33 AM
> To: perforce-user at perforce.com
> Subject: [p4] no write permissions to files after p4 sync
> 
> Hello Team,
> Once we submit the files to depot and sync them on the client 
> depot, original
> permissions of the files are lost.
> i.e. earlier to p4 submit 
> -Bash-3.00$ ls -l 1.c
> -rw-r--r--  1 rashmi users 0 Jun  8 05:25 1.c
> After submit and refreshing the client work space
> -r--r--r--  1 rashmi users 2832 Jun  8 06:42 1.c
> What do we have to do have the same file permissions even 
> after submitting to
> the depot and syncing it in client work space
> Regards,
> Rashmi 
> 
> 
> DISCLAIMER:
> This message (including attachment if any) is confidential 
> and may be privileged. Before opening attachments please 
> check them for viruses and defects. MindTree Consulting 
> Limited (MindTree) will not be responsible for any viruses or 
> defects or any forwarded attachments emanating either from 
> within MindTree or outside. If you have received this message 
> by mistake please notify the sender by return  e-mail and 
> delete this message from your system. Any unauthorized use or 
> dissemination of this message in whole or in part is strictly 
> prohibited.  Please note that e-mails are susceptible to 
> change and MindTree shall not be liable for any improper, 
> untimely or incomplete transmission.
> 
> 
> DISCLAIMER:
> This message (including attachment if any) is confidential 
> and may be privileged. Before opening attachments please 
> check them for viruses and defects. MindTree Consulting 
> Limited (MindTree) will not be responsible for any viruses or 
> defects or any forwarded attachments emanating either from 
> within MindTree or outside. If you have received this message 
> by mistake please notify the sender by return  e-mail and 
> delete this message from your system. Any unauthorized use or 
> dissemination of this message in whole or in part is strictly 
> prohibited.  Please note that e-mails are susceptible to 
> change and MindTree shall not be liable for any improper, 
> untimely or incomplete transmission.
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
> 



More information about the perforce-user mailing list