* should a cp copied file retain original permissions?
@ 2010-03-11 15:08 zzapper
2010-03-11 15:26 ` Darryl Zurn
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: zzapper @ 2010-03-11 15:08 UTC (permalink / raw)
To: zsh-users
Hi
zsh on cygwin on windows7
I frequently find that a file created by a copy (cp) has lost its permissions
such that I need to chmod it to be able to edit it etc; sometimes requiring
opening cygwin as windows administrator.
Is this normal?
--
zzapper
http://zzapper.co.uk/ Technical Tips
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: should a cp copied file retain original permissions?
2010-03-11 15:08 should a cp copied file retain original permissions? zzapper
@ 2010-03-11 15:26 ` Darryl Zurn
2010-03-11 16:17 ` Sebastian Stark
2010-03-11 18:41 ` Joke de Buhr
2 siblings, 0 replies; 4+ messages in thread
From: Darryl Zurn @ 2010-03-11 15:26 UTC (permalink / raw)
To: zzapper; +Cc: zsh-users
Try cp --preserve
Darryl
> Hi
> zsh on cygwin on windows7
>
>
> I frequently find that a file created by a copy (cp) has lost its
> permissions
> such that I need to chmod it to be able to edit it etc; sometimes
> requiring
> opening cygwin as windows administrator.
>
> Is this normal?
>
> --
> zzapper
> http://zzapper.co.uk/ Technical Tips
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: should a cp copied file retain original permissions?
2010-03-11 15:08 should a cp copied file retain original permissions? zzapper
2010-03-11 15:26 ` Darryl Zurn
@ 2010-03-11 16:17 ` Sebastian Stark
2010-03-11 18:41 ` Joke de Buhr
2 siblings, 0 replies; 4+ messages in thread
From: Sebastian Stark @ 2010-03-11 16:17 UTC (permalink / raw)
To: zzapper; +Cc: zsh-users
Am 11.03.2010 um 16:08 schrieb zzapper:
> Hi
> zsh on cygwin on windows7
>
>
> I frequently find that a file created by a copy (cp) has lost its permissions
> such that I need to chmod it to be able to edit it etc
yes, that's expected. Usually you use -p (standard) or -a (GNU) which does a bit more.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: should a cp copied file retain original permissions?
2010-03-11 15:08 should a cp copied file retain original permissions? zzapper
2010-03-11 15:26 ` Darryl Zurn
2010-03-11 16:17 ` Sebastian Stark
@ 2010-03-11 18:41 ` Joke de Buhr
2 siblings, 0 replies; 4+ messages in thread
From: Joke de Buhr @ 2010-03-11 18:41 UTC (permalink / raw)
To: zsh-users
[-- Attachment #1: Type: Text/Plain, Size: 460 bytes --]
cp -a
cp --archive
same as: cp -dR --preserve=all
same as: cp -dR --preserve=mode,ownership,timestamps,context,links,xattr
On Donnerstag 11 März 2010 16:08:42 zzapper wrote:
> Hi
> zsh on cygwin on windows7
>
>
> I frequently find that a file created by a copy (cp) has lost its
> permissions such that I need to chmod it to be able to edit it etc;
> sometimes requiring opening cygwin as windows administrator.
>
> Is this normal?
>
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-03-11 18:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-11 15:08 should a cp copied file retain original permissions? zzapper
2010-03-11 15:26 ` Darryl Zurn
2010-03-11 16:17 ` Sebastian Stark
2010-03-11 18:41 ` Joke de Buhr
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).