Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

acl_equiv_mode(3) [suse man page]

ACL_EQUIV_MODE(3)					   BSD Library Functions Manual 					 ACL_EQUIV_MODE(3)

NAME
acl_equiv_mode -- check for an equivalent ACL LIBRARY
Linux Access Control Lists library (libacl, -lacl). SYNOPSIS
#include <sys/types.h> #include <acl/libacl.h> int acl_equiv_mode(acl_t acl, mode_t *mode_p); DESCRIPTION
The acl_equiv_mode() function checks if the ACL pointed to by the argument acl contains only the required ACL entries of tag types ACL_USER_OBJ, ACL_GROUP_OBJ, and ACL_OTHER, and contains no permissions other that ACL_READ, ACL_WRITE or ACL_EXECUTE. If the ACL has this form, it can can be fully represented with the traditional file permission bits, and is considered equivalent with the traditional file per- mission bits. If acl is an equivalent ACL and the pointer mode_p is not NULL, the value pointed to by mode_p is set to the value that defines the same owner, group and other permissions as contained in the ACL. RETURN VALUE
On success, this function returns the value 0 if acl is an equivalent ACL, and the value 1 if acl is not an equivalent ACL. On error, the value -1 is returned, and errno is set appropriately. ERRORS
If any of the following conditions occur, the acl_equiv_mode() function returns the value -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_from_mode(3), acl(5) AUTHOR
Written by Andreas Gruenbacher <a.gruenbacher@bestbits.at>. Linux ACL March 23, 2002 Linux ACL

Check Out this Related Man Page

ACL_EQUIV_MODE(3)					   BSD Library Functions Manual 					 ACL_EQUIV_MODE(3)

NAME
acl_equiv_mode -- check for an equivalent ACL LIBRARY
Linux Access Control Lists library (libacl, -lacl). SYNOPSIS
#include <sys/types.h> #include <acl/libacl.h> int acl_equiv_mode(acl_t acl, mode_t *mode_p); DESCRIPTION
The acl_equiv_mode() function checks if the ACL pointed to by the argument acl contains only the required ACL entries of tag types ACL_USER_OBJ, ACL_GROUP_OBJ, and ACL_OTHER, and contains no permissions other that ACL_READ, ACL_WRITE or ACL_EXECUTE. If the ACL has this form, it can can be fully represented with the traditional file permission bits, and is considered equivalent with the traditional file per- mission bits. If acl is an equivalent ACL and the pointer mode_p is not NULL, the value pointed to by mode_p is set to the value that defines the same owner, group and other permissions as contained in the ACL. RETURN VALUE
Upon successful completion, this function returns the value 0 if acl is an equivalent ACL, and the value 1 if acl is not an equivalent ACL. Otherwise, the value -1 is returned, and errno is set to indicate the error. ERRORS
If any of the following conditions occur, the acl_equiv_mode() function returns the value -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_from_mode(3), acl(5) AUTHOR
Written by Andreas Gruenbacher <a.gruenbacher@computer.org>. Linux ACL March 23, 2002 Linux ACL
Man Page

7 More Discussions You Might Find Interesting

1. AIX

setting acl

Hi, I want to know how to set acl in aix via smitty and shell prompt, wheather we needs to install additional packages. (0 Replies)
Discussion started by: manoj.solaris
0 Replies

2. Debian

How to enable and use ACL's in Linux

Hi, How to enable and use ACL's in linux. Thx, siva. (2 Replies)
Discussion started by: Sivaswami
2 Replies

3. Cybersecurity

file permission/acl: 2 users with write access on 1 file...

Hello, i need some help/advice on how to solve a particular problem. these are the users: |name | group | ---------- --------------- |boss | department1 | |assistant | department1 | |employee | department1 | |spy | department2 | this is the... (0 Replies)
Discussion started by: elzalem
0 Replies

4. Virtualization and Cloud Computing

Custom ACL for S3 buckets and keys.

Recently I realized that s3cmd (ubuntu) does not let you have custom acl's on s3 objects. So I wrote the following ruby script and I thought I could share with you all. Using s3fox, s3hub etc was really painful. #!/usr/bin/env ruby require 'rubygems' require 'aws/s3' key = ARGV ## they... (0 Replies)
Discussion started by: linuxpenguin
0 Replies

5. UNIX for Advanced & Expert Users

Problems with ACL (seems like a bug)

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)
Discussion started by: rodrigoroma
4 Replies

6. UNIX for Beginners Questions & Answers

Help with HDFS Linux permission

Hi, I am unable to change the permissions for a directory in HDFS. from what i understand acl's supersede all other permissions. even if a directory is not owned by me, but there is an acl for me with rwx then i must be able to change the permissions of that directory. Please find the... (8 Replies)
Discussion started by: desind
8 Replies

7. UNIX for Beginners Questions & Answers

ACL permissions setup

All, I am building a glusterfs environment for file storage and need to set up ACL's as there are multiple users that need different types of access. I have ingested ~20TB of needed data to /toplevel dir and: chown -R root:root /toplevel ; chmod -R 775 /toplevel What I need from ACL as... (0 Replies)
Discussion started by: hburnswell
0 Replies