Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)

User Commands (c) cp(1)
The OSS Network File System (NFS) cannot access les that have ACLs. |
This table describes the impact of ACLs on the permissions used when a new le or directory is |
created by the cp command. Cases not included in the table represent impossible situations.
_______________________________________________________
cp Source Source Dest. Impact of
Command Fileset File/Dir Filesset ACLs on
Supports Supports Has Opt. Supports Permissions
ACLs ACLs ACLs ACLs of New File/Dir
_______________________________________________________
Y/N Y/N N N None
Y/N Y/N N Y See Note 2
Y/N Y Y N See Notes 1 and 3
N Y Y Y See Notes 1 and 2
Y Y Y Y See Note 4
_______________________________________________________
Note 1: The optional ACLs for the source le or directory are not copied to the
destination le or directory.
Note 2: If the destination parent directory has default ACL entries, those default
ACL entries are inherited by the new le or directory (see the acl(5)
reference page).
Note 3: If you use the -p ag, the le permissions are copied to the destination
le or directory and the class entry permissions in the ACL are used for
the destination le or directory group permissions. Otherwise, the per-
missions for the destination le or directory are set using the non-ACL
descriptions.
Note 4: If you use the -p ag, all ACL entries for the source le or directory are
copied to the destination le or directory. Otherwise, the permissions for
the destination le or directory are set using the non-ACL descriptions.
Use on Guardian Objects
Specify Guardian les with the /G pathname convention.
Only unstructured Guardian les are supported. If both the source and destination are Guardian
les, the le attributes specic to Guardian (such as extent sizes, le code, and le type) are
preserved. Thus if a type 101 EDIT Guardian le is copied within the Guardian volume, the tar-
get le is also a type 101 EDIT le, with all the line number information preserved. In addition,
if the -p ag is specied, other Guardian le attributes (such as user ID, le security, and times-
tamps) are preserved in the same manner they are preserved with the TACL command FUP DUP.
If you are copying a Guardian le to the OSS le hierarchy, only the content of the Guardian le
is copied: the Guardian le attributes are not preserved. Likewise, if you are copying an OSS
le to the Guardian le hierarchy, the target le is created as an unstructured Guardian le. Thus
if you copy a Guardian type 101 EDIT le to the OSS le hierarchy and then copy it back to the
Guardian le hierarchy, it will no longer be a Guardian type 101 EDIT le.
If a source le and destination le are determined to be the same, a diagnostic message is written
to the standard error le.
Because of the differences between the Guardian and OSS le systems, the following anomalies
can occur when OSS les are copied to a Guardian destination.
A destination pathname can contain illegal /G lename characters, even after it
has been transformed into a /G pathname. As a result, the destination le cannot
be created on the Guardian destination, and the copy operation fails.
527188-007 Hewlett-Packard Company 273