Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

acl_copy_entry(3) [osf1 man page]

acl_copy_entry(3)					     Library Functions Manual						 acl_copy_entry(3)

acl_copy_entry - Copies an ACL entry LIBRARY
Security Library (libpacl.a) SYNOPSIS
#include <sys/acl.h> int acl_copy_entry( acl_entry_t src_d, acl_entry_t dest_d); PARAMETERS
Specifies the working storage internal representation ACL entry to copy. Specifies the location to copy the working storage internal rep- resentation ACL entry to. DESCRIPTION
NOTE: This function is based on Draft 13 of the POSIX P1003.6 standard. The acl_copy_entry() function copies the contents of the individual ACL entry indicated by the src_d parameter to the individual ACL entry indicated by the dest_d parameter. Any ACL descriptor referring to the ACL entries in either parameter will still refer to the same ACL entries. This function overwrites the contents of the ACL entry indicated by the dest_d parameter. RETURN VALUES
Upon successful completion, the acl_copy_entry() function returns a value of 0 (zero). Otherwise, a value of -1 is returned, and errno is set to indicate the error. ERRORS
If the following condition occurs, the acl_copy_entry() function sets errno to the corresponding value: The src_d parameter or the dest_d parameter does not refer to a valid ACL entry. RELATED INFORMATION
acl_create_entry(3), acl_get_entry(3) Security delim off acl_copy_entry(3)

Check Out this Related Man Page

ACL_COPY_ENTRY(3)					   BSD Library Functions Manual 					 ACL_COPY_ENTRY(3)

acl_copy_entry -- copy an ACL entry LIBRARY
Linux Access Control Lists library (libacl, -lacl). SYNOPSIS
#include <sys/types.h> #include <sys/acl.h> int acl_copy_entry(acl_entry_t dest_d, acl_entry_t src_d); DESCRIPTION
The acl_copy_entry() function copies the contents of the ACL entry indicated by the src_d descriptor to the existing ACL entry indicated by the dest_d descriptor. The src_d and dest_d descriptors may refer to entries in different ACLs. RETURN VALUE
The acl_copy_entry() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indicate the error. ERRORS
If any of the following conditions occur, the acl_copy_entry() function returns -1 and sets errno to the corresponding value: [EINVAL] The argument src_d or dest_d is not a valid descriptor for an ACL entry. The arguments src_d and dest_d reference the same ACL entry. STANDARDS
IEEE Std 1003.1e draft 17 ("POSIX.1e", abandoned) SEE ALSO
acl_get_entry(3), acl(5) AUTHOR
Derived from the FreeBSD manual pages written by Robert N M Watson <>, and adapted for Linux by Andreas Gruenbacher <>. Linux ACL March 23, 2002 Linux ACL
Man Page

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

vxfs ACL problem

Has anyone had any experience with VXFS and ACL's? For some reason when these two are used together ACL's don't seem to work properly (i.e. sometimes ACL's won't be applied to files in a directory so that when trying to move the directory, the new directory is created but the old directory still... (3 Replies)
Discussion started by: dangral
3 Replies

2. UNIX for Dummies Questions & Answers

cuting the entries from one file and copy to other

refer earlier message (0 Replies)
Discussion started by: vasikaran
0 Replies

3. SCO

ACL for Subnet/IP address

I am trying to find out if you can create an ACL for telnet sessions and restrict it to a certain subnet/IP range.. any information or where to look would be greatly appreciated. thanks (1 Reply)
Discussion started by: marvin51796
1 Replies

4. UNIX for Dummies Questions & Answers

how to backup with ACL

Hello All, I just inherent a new server with RedHat AS4 and ACL file system. I'm new to ACL and was trying to dump the system for backup and got errors that the ACL inodes would not be backed up. I have tried different command for backup such as star pax but found that there is a limitation of... (2 Replies)
Discussion started by: larryase
2 Replies

5. AIX

Configuring ACL on AIX 5.3

Hello All, Let me quickly come down to my problem.. I have a file with following description: == root:/me01/tia/filetr ans # ls -lrt DW_NUM_OF_ROWS_TSP.txt -rwxrwxr-- 1 tiaoas oinstall 43 Jun 07 17:12 DW_NUM_OF_ROWS_TSP.txt root:/me01/tia/filetrans # aclget DW_NUM_OF_ROWS_TSP.txt *... (3 Replies)
Discussion started by: thisissouvik
3 Replies

6. UNIX for Dummies Questions & Answers

Security Question

In an effort to adapt to best security practices, it has been suggested that a number of scripts that are going to be distributed to multiple machines across an internal network use be modified to replace instances of rsh and rcp with openSSH ssh and scp. Since there are so many references to rsh... (1 Reply)
Discussion started by: jasondj
1 Replies

7. Solaris

Help with ACL on dir/files

Hello, I'm looking for some insight on ACL's in particular in regards to directories (but I guess files as well). Here is what I would like to achieve. A shared directory (by samba) that is mapped on a Windows box as a netowrk drive, any members of a specific domain group should have... (3 Replies)
Discussion started by: NOTORIOUS VR
3 Replies

8. UNIX for Dummies Questions & Answers

SAN Storage ACL and Quotas

I have SAN storage allocated to my server but ACL and Quotas mount options are not working on it. Is there a reason why? Thank you! /dev/mapper/datavg-datalv /data ext4 defaults,usrquota,grpquota 1 2 mount -o remount /data tune2fs -l /dev/mapper/datavg-datalv | grep 'Default... (1 Reply)
Discussion started by: svalenciatech
1 Replies