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_VALID(3) BSD Library Functions Manual ACL_VALID(3)NAME
acl_valid -- validate an ACL
LIBRARY
Linux Access Control Lists library (libacl, -lacl).
SYNOPSIS
#include <sys/types.h>
#include <sys/acl.h>
int
acl_valid(acl_t acl);
DESCRIPTION
The acl_valid() function checks the ACL referred to by the argument acl for validity.
The three required entries ACL_USER_OBJ, ACL_GROUP_OBJ, and ACL_OTHER must exist exactly once in the ACL. If the ACL contains any ACL_USER or
ACL_GROUP entries, then an ACL_MASK entry is also required. The ACL may contain at most one ACL_MASK entry.
The user identifiers must be unique among all entries of type ACL_USER. The group identifiers must be unique among all entries of type
ACL_GROUP.
RETURN VALUE
The acl_valid() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indi-
cate the error.
ERRORS
If any of the following conditions occur, the acl_valid() function returns -1 and sets errno to the corresponding value:
[EINVAL] The argument acl is not a valid pointer to an ACL.
The argument acl does not point to a valid ACL.
One or more of the required ACL entries is not present in acl.
The ACL contains entries that are not unique.
STANDARDS
IEEE Std 1003.1e draft 17 ("POSIX.1e", abandoned)
SEE ALSO acl_check(3), acl_set_file(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)