ACL_GET_PERM_NP(3) BSD Library Functions Manual ACL_GET_PERM_NP(3)NAME
acl_get_perm_np -- check if a permission is set in a permission set
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <sys/types.h>
#include <sys/acl.h>
int
acl_get_perm_np(acl_permset_t permset_d, acl_perm_t perm);
DESCRIPTION
The acl_get_perm_np() function is a non-portable function that checks if a permission is set in a permission set.
RETURN VALUES
If the permission in perm is set in the permission set permset_d, a value of 1 is returned, otherwise a value of 0 is returned.
ERRORS
If any of the following conditions occur, the acl_get_perm_np() function will return a value of -1 and set global variable errno to the cor-
responding value:
[EINVAL] Argument perm does not contain a valid ACL permission or argument permset_d is not a valid ACL permset.
SEE ALSO acl(3), acl_add_perm(3), acl_clear_perms(3), acl_delete_perm(3), acl_get_permset(3), acl_set_permset(3), posix1e(3)STANDARDS
POSIX.1e is described in IEEE POSIX.1e draft 17.
AUTHORS
Michael Smith
Chris D. Faulhaber
BSD April 10, 2001 BSD
Check Out this Related Man Page
ACL_DELETE_PERM(3) BSD Library Functions Manual ACL_DELETE_PERM(3)NAME
acl_delete_perm -- delete permissions from a permission set
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <sys/types.h>
#include <sys/acl.h>
int
acl_delete_perm(acl_permset_t permset_d, acl_perm_t perm);
DESCRIPTION
The acl_delete_perm() function is a POSIX.1e call that removes specific permissions from permissions set perm.
RETURN VALUES
The acl_delete_perm() 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
The acl_delete_perm() function fails if:
[EINVAL] Argument permset_d is not a valid descriptor for a permission set. Argument perm does not contain a valid acl_perm_t
value.
SEE ALSO acl(3), acl_add_perm(3), acl_clear_perms(3), acl_get_permset(3), acl_set_permset(3), posix1e(3)STANDARDS
POSIX.1e is described in IEEE POSIX.1e draft 17.
HISTORY
POSIX.1e support was introduced in FreeBSD 4.0. The acl_delete_perm() function was added in FreeBSD 5.0.
AUTHORS
The acl_delete_perm() function was written by Chris D. Faulhaber <jedgar@fxp.org>.
BSD March 10, 2001 BSD
Can anybody please tell me what in the world this command does? find /home -mount \( -perm -4000 -o -perm -2000 -o -perm -2 \) -a \( -type f -o -type d \) -exec ls -lLabd {} \; 2> /dev/null
This is a SCO Unixware machine (3 Replies)
hi, in other previous post, someone suggested to set the " perm bits " to lock the file such that preventing others write to that same file, could someone please explain exactly what is perm bits and how can I achieve the desired result? Thanks! (1 Reply)
hi all
i was reading some questions related to file permission if file has 000 permission then who can read the file ?
i think no one can read the file.
correct me if i am wrong (4 Replies)
Hi,
I have a file which don't have execute permission, but still it can be executed by "sh" like as below.
------------------------------------------------------------------
-rw-r----- 1 root other 30 May 8 15:43 test.sh
(svpkg1-nd:root) - ./test.sh
./test.sh: cannot execute... (4 Replies)
Hi All,
I have requirement to give permission to empty file. I do it in two steps.
But is it possible using touch command with some option for providing permission for a file.
Regards,
gehlnar (3 Replies)
Hi there,
I want to change from this permission -r-xr-xr-x to -r-xr-xr-- for a set of files under unix.
Can someone help me to go-about doing this in one shot.
Cheers,
RN (2 Replies)
Hello,
I ls -al to see the permission of a file and there is 1 file have strange permission. It's a "l" instead of "x".
-rwxr-lr-x 1 root other 24905 Jan 11 2007 /etc/vx/isis/Registry.pre-ddlpro
-rw-r-lr-- 1 root root 0 Jan 6 43:25... (2 Replies)
Hi, I having an issue with file permission. To fix it I need to read the file's existing permission and re-apply the same permission to the file. This has to be done for every single file under a mount point. I'm novice in scripting. Help me with this in shell scripting.
# ls -l /dev/null... (10 Replies)
Could anyone help me ,if the permission says '0x11' .? I understand the execute permission for group and all ...but not very sure about 'x' in user position...
Thanks (1 Reply)
How to find all files for instance that match the permission rwxr*x--- where * is a wildcard which can be optionally asserted but all the others must match? Thanks in advance (7 Replies)
Can any one tell me is there any command to find out who changed the permission of a file Or is there any log file so that i can find out who has changed the permission of a file?
Thanks in Advance:) (7 Replies)
Hi All,
I would like to read the permission from a file and wanted to apply the same permission to another file.
say for example,
f1 755
first...i have to read the permission type (which is differ for each file) and need to apply the same for f2
a1 666
i have to get this... (5 Replies)