Sponsored Content
Full Discussion: Help setting ACL's
Top Forums UNIX for Beginners Questions & Answers Help setting ACL's Post 302977430 by wilberforce on Monday 18th of July 2016 05:45:53 AM
Old 07-18-2016
Help setting ACL's

Folks,

Solaris 10 issue

When I add a new directory to a path, I only get the "group@" line in the ACL

The parent directory ACL is
Code:
drwxrws---+ 12 root     teama      12 Jul 18 10:31 .
            owner@:rwxp-DaARWc---:------:allow
            group@:rwxp-DaARWc--s:fd----:allow
         everyone@:------a-R-c--s:------:allow

I want to make sure that those in subsequent sub directories can have the same premsissions, i.e., under the parent, they will all have the same group line as above.

But on doing "mkdir newdir", I'm getting -

Code:
root@server > ls -dV newdir
d---rws---+  2 usera   teama         2 Jul 18 10:24 newdir
            group@:rwxp-DaARWc--s:fd----:allow

No "user" row or "everyone" row.

Code:
d---rws---+  2 usera teama         2 Jul 18 10:24 newdir
            group@:rwxp-DaARWc--s:fd----:allow


Edit -
I should have added that if I don't have the 'fd' in, the directory created includes "user" and "everyone" rows in the acl.

root@server > ls -dV newdir1
Code:
drwxrwsr-x   2 root     teama         2 Jul 18 10:44 newdir1
            owner@:rwxp-DaARWcCos:------:allow
            group@:rwxp-DaARWc--s:------:allow
         everyone@:r-x---a-R-c--s:------:allow




Moderator's Comments:
Mod Comment Please use code tags as required by forum rules!

Last edited by RudiC; 07-18-2016 at 07:34 AM.. Reason: Added code tags.
 

9 More Discussions You Might Find Interesting

1. Cybersecurity

ACL

Hi all, I've just been handled the responsibility for a FTP-site. Having no experiens of UNIX at all. And now one of my users needs to have full access to the usr directory and all it's subdirectories, don't know why just trying to do what the boss tells me. The type of UNIX is FreeBSD and the... (4 Replies)
Discussion started by: -tri-
4 Replies

2. Cybersecurity

setting ACL's

Hi all, How can I set default owning user and default owning group with setfacl on Solaris 2.6 and up ? My idea is, that when a file is created by user x, and the default owning user is y, the ownership is set to y. This option is visible in the filemanager, though not editable. I can't find... (5 Replies)
Discussion started by: andy_kann
5 Replies

3. Linux

setting acl on linux

Hi, while setting access control list I am getting error "Operation NOt Supported" Example :user A wants full access on test directory /home/user B/test, I dont want to add in secondary group bcz group has read permission, (1 Reply)
Discussion started by: manoj.solaris
1 Replies

4. 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

5. UNIX for Dummies Questions & Answers

setting up ACL in Apache

Folks; How can i setup ACL in Apache so i can give a group of users (defined by their emails (all users under *@red.com) access to a web page? (10 Replies)
Discussion started by: moe2266
10 Replies

6. Linux

ACL

Hi, I want to know what does the "effective" comment means in the output of the getfacl and whether it has to do with the acl mask... thanks (0 Replies)
Discussion started by: Gartlar
0 Replies

7. Solaris

ACL

Can i get the synopsis for add multiple users in single command for ACL access for a directory or a file thanks in advance dinu (3 Replies)
Discussion started by: dinu
3 Replies

8. Solaris

Is there a difference between setting a user as nologin and setting it as a role?

Trying to figure out the best method of security for oracle user accounts. In Solaris 10 they are set as regular users but have nologin set forcing the dev's to login as themselves and then su to the oracle users. In Solaris11 we have the option of making it a role because RBAC is enabled but... (1 Reply)
Discussion started by: os2mac
1 Replies

9. Solaris

ACL on the Solaris

we have two Solaris 10 servers with same configuration and settings. We have hard mounted the NFS with the version 4. In one of the server the newer ACL commands are working fine (chmod and ls -v) whereas in another only posix (getfacl and setfacl alone is working) when we try ls -V in in that... (13 Replies)
Discussion started by: sathishbabu89
13 Replies
acl_set_fd(3)						     Library Functions Manual						     acl_set_fd(3)

NAME
acl_set_fd - Sets the ACL on the file or directory designated by the file descriptor LIBRARY
Security Library (libpacl.a) SYNOPSIS
#include <sys/acl.h> int acl_set_fd( int fd; acl_type_t type_d; acl_t acl_d); PARAMETERS
Refers to the open file descriptor of the file or directory to set the ACL on. Designates the type of ACL to set: ACL_TYPE_ACCESS, ACL_TYPE_DEFAULT, or ACL_TYPE_DEFAULT_DIR. Working storage internal representation of the ACL that is being set. DESCRIPTION
NOTE: This function is based on Draft 13 of the POSIX P1003.6 standard. Given a file descriptor to a file or directory, the acl_set_fd() function sets the designated ACL. The type of ACL being set is determined by the type_d parameter. If acl_d is NULL then the designated ACL is removed from the designated file or directory. The entry pointer used by the acl_get_entry() function becomes undefined after a call to the acl_set_fd() function. RETURN VALUES
Upon successful completion, the acl_set_fd() function returns a value of 0 (zero). Otherwise, a value of -1 is returned and errno is set to indicate the error. ERRORS
If any of the following conditions occur, the acl_set_fd() function sets errno to the corresponding value: The required access to the file was denied. The fd argument is not a valid file descriptor. The acl_d argument does not contain a valid ACL. Argument type_d does not contain a valid ACL type number. The directory or file system that would contain the new ACL cannot be extended or the file system is out of file allocation resources. The argument type_d indicates a default ACL, and fd does not point to a directory. The designated file or directory resides on a file system that does not support ACLs. The process does not have the appropriate permis- sions to perform the operation. The setting and changing of ACLs have been disabled by the system administrator. The designated file or directory resides on a read-only file system. RELATED INFORMATION
acl_get_fd(3), acl_valid(3), acl_set_file(3) Security delim off acl_set_fd(3)
All times are GMT -4. The time now is 11:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy