acl_delete_perm(3) Library Functions Manual acl_delete_perm(3)NAME
acl_delete_perm - Delete permissions from a set of permissions belonging to an ACL entry
LIBRARY
Security Library (libpacl.a)
SYNOPSIS
#include <sys/acl.h>
int acl_delete_perm( acl_permset_t permset_d,
acl_perm_t perm_d);
PARAMETERS
Specifies the permission set of the working storage internal representation ACL entry. Specifies the file permissions to be deleted (a
combination of ACL_EXECUTE, ACL_READ, and ACL_WRITE).
DESCRIPTION
NOTE: This function is based on Draft 13 of the POSIX P1003.6 standard.
The acl_delete_perm() function deletes the specified permission in perm_d from the permission set. This function does not return an error
if the permission set does not have any of the specified permissions turned on.
RETURN VALUES
Upon successful completion, the acl_delete_perm() 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_delete_perm() function sets errno to the corresponding value: The permset_d parameter does not
refer to a valid permission set.
The perm_d parameter does not contain valid file permission bits.
RELATED INFORMATION acl_add_perm(3), acl_clear_perm(3),acl_get_permset(3), acl_set_permset(3), acl_get_entry(3)
Security delim off
acl_delete_perm(3)
Check Out this Related Man Page
acl_clear_perm(3) Library Functions Manual acl_clear_perm(3)NAME
acl_clear_perm - Clears a set of permissions in an ACL entry
LIBRARY
Security Library (libpacl.a)
SYNOPSIS
#include <sys/acl.h>
int acl_clear_perm( acl_permset_t permset_d);
PARAMETERS
Specifies the permission set of the working storage internal representation of an ACL entry.
DESCRIPTION
NOTE: This function is based on Draft 13 of the POSIX P1003.6 standard.
The acl_clear_perm() function clears the permissions from the permission set in permset_d.
RETURN VALUES
Upon successful completion, the acl_clear_perm() function returns a value of 0 (zero). Otherwise a value of -1 is returned, and errno is
set.
ERRORS
If any of the following conditions occur, the acl_clear_perm() function sets errno to the corresponding value: permset_d does not refer to
a valid permission set.
RELATED INFORMATION acl_add_perm(3), acl_delete_perm(3), acl_get_permset(3), acl_set_permset(3), acl_get_entry(3)
Security delim off
acl_clear_perm(3)
Use the following to Change permission of fileB (fileB could be fileB*) to change its permission same as the permission of fileA.
chmod `ls -l fileA | awk '{pr
int "u+", substr($1,2,1), substr($1,3,1), substr($1,4,1), ",g+", substr($1,5,1),
substr($1,6,1), substr($1,7,1), ",o+",... (0 Replies)
Hi!! Experts,
Is there any way to find the timestamp when the permission of a file was modified?? I mean no change to file contents.. Just the chnage of permissions.
:) (1 Reply)
how can a script run without execute permissions.
when i run myscript as :
sh a.sh
it was working but when i say simple a.sh its not working since it has no x permission.but how about fist case? (1 Reply)
Can you help me to find a way to check that the level of the permissions givven to Others is not higher then the permission given to Group that is not higer from Owner permissions ? (3 Replies)
Hi all,
Is there an option in ls that will show the permission bit in numbers instead of the permissions?
The ls output below are very useful I guess, but I want to know if it is possible to run ls where it just shows 600 I guess which is the numeric equivalent of the permission bit of the... (5 Replies)
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)
Hey Guys,
First post here. I just started learning UNIX a few weeks ago.
My issue: I use FreeNAS which is based off of UNIX in my network environment which hosts files that my team needs to access. Each user has their own login but we are all part of a group called "ITLIC".
I have a share... (15 Replies)
i am trying to write a simple script to move files from one folder to another and when i try to run the script i get permission errors. I am still new to all of this and permissions still confuse me. Can anyone shed some light?
I have attached screenshots of my script in the middle. (which i... (3 Replies)