chownacl.3c (2010 09)
c
chownacl(3C) chownacl(3C)
#include <sys/acl.h>
int nentries;
struct acl_entry acl [NACLENTRIES];
struct stat statbuf;
if (stat ("oldfile", & statbuf) < 0)
error (...);
if ((nentries = getacl ("oldfile", NACLENTRIES, acl)) < 0)
error (...);
chownacl (nentries, acl, statbuf.st_uid, statbuf.st_gid,
geteuid(), getegid());
if (setacl ("newfile", nentries, acl))
error (...);
DEPENDENCIES
chownacl() is only supported on HFS file system on standard HP-UX operating system.
AUTHOR
chownacl() was developed by HP.
SEE ALSO
chown(2), getacl(2), getegid(2), geteuid(2), getuid(2), setacl(2), stat(2), acltostr(3C), cpacl(3C),
setaclentry(3C), strtoacl(3C), acl(5), thread_safety(5).
2 Hewlett-Packard Company − 2 − HP-UX 11i Version 3: September 2010