Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

acl_get_perm_np(3) [freebsd man page]

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. HISTORY
POSIX.1e support was introduced in FreeBSD 4.0. The acl_get_perm_np() function was added in FreeBSD 5.0. AUTHORS
The acl_get_perm_np() function was written by Chris D. Faulhaber <jedgar@fxp.org>. 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
Man Page

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

touch and permission

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)
Discussion started by: gehlnar
3 Replies

2. Shell Programming and Scripting

what does "s" stand for in the permission list -rwsr-sr-x?

-rwsr-sr-x I have a permission like this. What does s stand for and how do we represent this in numbers? like 755, 744 etc., (2 Replies)
Discussion started by: sagar_evc
2 Replies

3. Shell Programming and Scripting

Re-apply the file permission

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)
Discussion started by: agent001
10 Replies

4. UNIX for Dummies Questions & Answers

permission question

Hi, On the Redhat ES, when I do ls -l I see dot (.) after the permission. I never saw on other UNIX systems. Is that some thing new RH 6? -rw-r--r--. <---- this dot, I am referring to -rw-r--r--. 1 root root 18 May 20 2009 .bash_logout -rw-r--r--. 1 root root 176 May 20 ... (1 Reply)
Discussion started by: samnyc
1 Replies

5. Shell Programming and Scripting

search any user files with write permission

Guys, i wanna get any user files with write permission (on user or group permission) for review but i confuse with -perm parameter. any body can help me to explain what is that mean? thank's (1 Reply)
Discussion started by: michlix
1 Replies

6. Shell Programming and Scripting

Apply file permission

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)
Discussion started by: karthi_mrkg
5 Replies

7. AIX

Syslogs permission not getting changed - aix 6.1

Friends, I've tried to modify the syslogs permission by using the perm option in the syslog configuration in AIX 6.1 TL 05. But its not getting applied after the configuration. Have restarted the syslog service also. Need your help!:wall: The below are the conf details and os versions >... (1 Reply)
Discussion started by: novaothers
1 Replies