[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question about default permissions for copy

From: Jorge Garcia
Subject: Question about default permissions for copy
Date: Tue, 5 Jun 2001 16:51:20 -0700 (PDT)

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

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]