ACL_ENTRIES(3) BSD Library Functions Manual ACL_ENTRIES(3)NAME
acl_entries -- return the number of entries in an ACL
LIBRARY
Linux Access Control Lists library (libacl, -lacl).
SYNOPSIS
#include <sys/types.h>
#include <acl/libacl.h>
int
acl_entries(acl_t acl);
DESCRIPTION
The acl_entries() function returns the number of ACL entries that are contained in the ACL referred to by the argument acl.
RETURN VALUE
The acl_entries() function returns the number of entries in acl 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_entries() function returns -1 and sets errno to the corresponding value:
[EINVAL] The argument acl is not a valid pointer to an ACL.
STANDARDS
This is a non-portable, Linux specific extension to the ACL manipulation functions defined in IEEE Std 1003.1e draft 17 ("POSIX.1e", aban-
doned).
SEE ALSO acl(5)AUTHOR
Written by Andreas Gruenbacher <a.gruenbacher@computer.org>.
Linux ACL March 23, 2002 Linux ACL
Check Out this Related Man Page
ACL_DELETE_ENTRY(3) BSD Library Functions Manual ACL_DELETE_ENTRY(3)NAME
acl_delete_entry -- delete an ACL entry
LIBRARY
Linux Access Control Lists library (libacl, -lacl).
SYNOPSIS
#include <sys/types.h>
#include <sys/acl.h>
int
acl_delete_entry(acl_t acl, acl_entry_t entry_d);
DESCRIPTION
The acl_delete_entry() function removes the ACL entry indicated by the entry_d descriptor from the ACL pointed to by acl. Any existing ACL
entry descriptors that refer to entries in acl other than that referred to by entry_d continue to refer to the same entries. The argument
entry_d and any other ACL entry descriptors that refer to the same ACL entry are undefined after this function completes. Any existing ACL
pointers that refer to the ACL referred to by acl continue to refer to the ACL.
RETURN VALUE
The acl_delete_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_delete_entry() function returns -1 and sets errno to the corresponding value:
[EINVAL] The argument acl_p is not a valid pointer to an ACL.
The argument entry_d is not a valid pointer to an ACL entry.
STANDARDS
IEEE Std 1003.1e draft 17 ("POSIX.1e", abandoned)
SEE ALSO acl_copy_entry(3), acl_create_entry(3), acl_get_entry(3), acl(5)AUTHOR
Derived from the FreeBSD manual pages written by Robert N M Watson <rwatson@FreeBSD.org>, and adapted for Linux by Andreas Gruenbacher
<a.gruenbacher@computer.org>.
Linux ACL March 23, 2002 Linux ACL
I gave the permission for a user using
Setfacl as folllows
setfacl -m u:user:rwx,m:rwx /home/master
To a home path of a master user
When i try to remove the same it showing as
$ setfacl -r s /home/master
usage:
setfacl -f aclfile file ...
setfacl -d... (2 Replies)
Hi all,
The configuration:
We are useing a HP-UX Server with vxfs File System. The files on this server have normally a umask of 022 (owned by a administrative account) users who have write access to certain files get custom ACL entries that add these rights for the specific user.
Now a... (0 Replies)
Hi, i think i have found a bug in the unix ACL permissions.
I tested this problem in the Ubuntu 9.10 and in SLES 10 and 11, all of them with setfacl 2.2.47.
Well, I have done the following test:
1) Create a folder and set some named user, and set the same ACL entry for the Default ACL, like... (4 Replies)
hello,
I am using XFS filesystem & ACL (setfacl/getfacl). I can set ACL entries only for 21 users per one directory. For the 22nd user it shows invalid argument.
Has somebody the same problem? I need to override this limit.
thnks in advance
david (3 Replies)
Hi all,
I am curious what does this mean for? My file access right is denoted as
xxx xxx xxx +, what does the + sign mean?
As I am having + sign in file access, I am not able to copy the file that is having + sign. Thanks. (13 Replies)
I shared from linux server a dir with nfs3,solaris mount
ok,and can tar files,but if i do ls or cp..
on mnt i have mount the nfs share
root@solaris: mnt $ touch 2
root@solaris: mnt $ ls -lh
ls: can't read ACL on .: Permission denied
root@solaris: mnt $ ls
1.tar
2
root@solaris: mnt $ cp... (4 Replies)
All,
I am trying to clear ACL's completely from all files and folders in a directory. I can get the directories as cleared as:
# owner: root
# group: root
user::rwx
group::r-x
other::rwx
default:user::rwx
default:group::r-x
default:other::r-x
What ever I do I can't remove the... (4 Replies)