[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question about default permissions for copy
From: |
Jorge Garcia |
Subject: |
Re: Question about default permissions for copy |
Date: |
Wed, 6 Jun 2001 09:19:53 -0700 (PDT) |
Sorry, here's the additional information:
cfengine version: 1.6.3
OS version: Red Hat Linux 7.1 (2.4.2 Kernel)
Jorge
On Wed, 6 Jun 2001 Mark.Burgess@iu.hio.no wrote:
> On 5 Jun, Jorge Garcia wrote:
> > I'm a recent cfengine convert. But I have been looking for the answer to
> > this question in all the docs, and can't find it. The question is:
> >
> > When you do a copy command, what does cfengine use to set the permissions
> > if they are not specified?
> >
> > This seems to be very strange. As a test, I created a directory with
> > sample files of all semi-normal permissions. Then I did a copy of the
> > directory to a different directory. What I would expect is that, if
> > permissions are not specified, it assigns the same permissions as the
> > source files. But it seemed to assign all files to the same strange
> > permission.
> >
> > Here is the source directory:
> >
> > drwxr-xr-x ./
> > drwxrwxr-x ../
> > -r--r--r-- f444
> > -r-xr-xr-x f555*
> > -rw-r--r-- f644
> > -rw-rw-r-- f664
> > -rwxr-xr-x f755*
> > -rwxrwxr-x f775*
> > -rwxrwxrwx f777*
> >
> > And here is the resulting "copy":
> >
> > d----w---- .
> > drwxrwxr-x ..
> > -rw--w---- f444
> > -rw--w---- f555
> > -rw--w---- f644
> > -rw--w---- f664
> > -rw--w---- f755
> > -rw--w---- f775
> > -rw--w---- f777
> >
> > Any suggestions? Please e-mail directly.
> >
> > Thanks,
> >
> > Jorge
> >
> >
> >
> >
> >
>
>
> PLease say what version, what OS.
>
> M
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Work: +47 22453272 Email: Mark.Burgess@iu.hio.no
> Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>