ACLs and cp
Andreas Gruenbacher
a.gruenbacher at infosys.tuwien.ac.at
Thu Jan 13 00:02:44 GMT 2000
Dear all,
I have a question concerning the cp utility.
DS17 specifies that these tools retain the ACLs of files. Now how does the umask
affect the behavior (and how does a default ACL)? Should cp simply copy the
permissions 1-1, or should it copy the permissions, minus those masked out by
the umask?
The GNU fileutils do a chmod() with the umask bits masked out after copying:
> umask
022
> ls -l x
-rw-rw-rw- 1 agruenba users 0 Jan 13 01:00 x
> cp x y
> ls -l y
-rw-r--r-- 1 agruenba users 0 Jan 13 01:05 y
Thanks,
Andreas
------------------------------------------------------------------------
Andreas Gruenbacher, a.gruenbacher at computer.org
Contact information: http://www.infosys.tuwien.ac.at/~agruenba
To Unsubscribe: send mail to majordomo at cyrus.watson.org
with "unsubscribe posix1e" in the body of the message
More information about the posix1e
mailing list