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_get_fd(3)						     Library Functions Manual						     acl_get_fd(3)

NAME
acl_get_fd - Retrieves the specified ACL associated with the specified file or directory LIBRARY
Security Library (libpacl.a) SYNOPSIS
#include <sys/acl.h> acl_t acl_get_fd( int fd); acl_type_t type_d); PARAMETERS
Designates the file descriptor of the file or directory to retrieve the ACL from. Designates the type of ACL to retrieve: ACL_TYPE_ACCESS, ACL_TYPE_DEFAULT, or ACL_TYPE_DEFAULT_DIR. DESCRIPTION
NOTE: This function is based on Draft 13 of the POSIX P1003.6 standard. The acl_get_fd() function retrieves the specified ACL for the given file descriptor. The acl_tag_t field designates if the ACL being retrieved is an access or default ACL. Working storage is allocated as needed. RETURN VALUES
Upon successful completion, the acl_get_fd() function returns a pointer to the working storage internal representation copy of the ACL. If the specified ACL type is ACL_TYPE_DEFAULT or ACL_TYPE_DEFAULT_DIR and the specified ACL doesn't exist for the given file descriptor a value of NULL is returned. If the specified ACL type is ACL_TYPE_ACCESS and the given file descriptor doesn't have an access ACL a pointer to the working storage internal representation copy of the permission bits in ACL format is returned. Otherwise, a value of NULL is returned and errno is set to indicate the error. ERRORS
If any of the following conditions occur, the acl_get_fd() function sets errno to the corresponding value: The required access to the file or directory was denied. The fd argument is not a valid file descriptor. The argument type_d is not a recognized ACL type. There is not enough memory available to the process to allocate the working storage. The type_d argument indicates a default ACL, and fd does not point to a directory. RELATED INFORMATION
acl_get_file(3), acl_set_file(3), acl_set_fd(3), Security delim off acl_get_fd(3)
All times are GMT -4. The time now is 07:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy