ACL permissions setup


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers ACL permissions setup
# 1  
Old 10-02-2017
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:

Code:
chown -R root:root /toplevel ; chmod -R 775 /toplevel

What I need from ACL as far as permissions on all files and folders is:

group1:rwx
group2:rwx
group3:r--

This it appears I can accomplish with:

Code:
setfacl -R -m g:group1:rwx,g:group2:rwx,g:group3:r /toplevel

The problem I'm having is with the defaults that need to be in place for user folder and file creation inheriting the same permissions. I ran:

Code:
setfacl -R -m default:g:group1:rwx,default:g:group2:rwx,default:g:group3:r /toplevel

However, this did not allow for what I need (possibly due to mask?). If a user in group1 created a folder, another user in group1 could not write to it.

So, in testing a couple things I ran:

Code:
setfacl -m m:rwx /toplevel
setfacl -m default:u::rwx,default:g::rwx,default:o::rx /toplevel

This did not change the behavior. Here is the getfacl on /toplevel now:

Code:
# getfacl toplevel
# file: toplevel
# owner: root
# group: root
user::rwx
group::rwx
group:group1:rwx
group:group3:r--
group:group2:rwx
mask::rwx
other::r-x
default:user::rwx
default:group::rwx
default:group:group1:rwx
default:group:group3:r--
default:group:group2:rwx
default:mask::rwx
default:other::r-x

Does anyone see here what I am doing wrong?

A related question: When configuring the default settings, is using the '-R' ONLY looking for directories to set the defaults or is it traversing files and skipping them, slowing down the process? Or would it be more efficient to do something like:

Code:
find /toplevel -type d -exec <setfacl cmd> {} \;

Thanks in advance, any guidance is greatly appreciated..

HB

---------- Post updated at 05:50 PM ---------- Previous update was at 03:00 PM ----------

Update:

When I create a folder under /toplevel from the command line as directory owner root, I get the following ACL's:

Code:
# getfacl toplevel/testing3
# file: toplevel/testing3
# owner: root
# group: root
user::rwx
group::rwx
group:group1:rwx
group:group3:r--
group:group2:rwx
mask::rwx
other::r-x
default:user::rwx
default:group::rwx
default:group:group1:rwx
default:group:group3:r--
default:group:group2:rwx
default:mask::rwx
default:other::r-x

And with these ACL's, I can write to the newly created /toplevel/testing3 with users in group1.

When I create a folder under /toplevel from a CIFS share as a user in group1, I get the following ACL's:

Code:
# getfacl toplevel/testing4
# file: toplevel/testing4
# owner: user.1
# group: domain\040users
user::rwx
group::rwx		#effective:r-x
group:group1:rwx	#effective:r-x
group:group3:r--
group:group2:rwx	#effective:r-x
mask::r-x
other::r-x
default:user::rwx
default:group::rwx
default:group:group1:rwx
default:group:group3:r--
default:group:group2:rwx
default:mask::rwx
default:other::r-x

With these ACL's users in group1 other than user.1 are unable to write to the newly created /toplevel/testing4 directory.

Does anyone have any idea of what is going on here?

Thanks,

HB

Update:

I have found that my problem was with my Samba settings (smb.conf). Specifically, I needed to add:

inherit acls = yes
inherit owner = yes
inherit permissions = yes

Now users in group1 and group3 can create folders and files that others in the groups can rw to.

Thanks,

HB

Last edited by hburnswell; 10-03-2017 at 03:54 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Set ACL permissions Solaris

I want to set ACL permissions using this command in solaris 10 , but I get an error message. server# mkdir dir1 server# setfacl -m user:allan:rwx dir1 setacl error: Operation not applicable Any one can help in this matter. Please use CODE tags as required by forum rules! (2 Replies)
Discussion started by: AbuAliiiiiiiiii
2 Replies

2. UNIX for Beginners Questions & Answers

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 drwxrws---+ 12 root teama 12 Jul 18 10:31 . owner@:rwxp-DaARWc---:------:allow group@:rwxp-DaARWc--s:fd----:allow ... (0 Replies)
Discussion started by: wilberforce
0 Replies

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

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

5. UNIX for Dummies Questions & Answers

how to backup with ACL

Hello All, I just inherent a new server with RedHat AS4 and ACL file system. I'm new to ACL and was trying to dump the system for backup and got errors that the ACL inodes would not be backed up. I have tried different command for backup such as star pax but found that there is a limitation of... (2 Replies)
Discussion started by: larryase
2 Replies

6. AIX

NIM server setup on etherchannel setup environment

I know that IBM's official stance is that NIM does not work on etherchannel environment, but has anyone able to get around it? I'm working on a p5-590 LPAR system, and the NIM master and clients are all on the same frame. Any help is appreciated. (1 Reply)
Discussion started by: pdtak
1 Replies

7. UNIX for Dummies Questions & Answers

Setup of user groups and permissions

Hi folks, thanks for reading this. I have been asked to manage our company's SCO OpenServer 5 system since the old administrator left. I have a very basic knowledge of Unix, but only the basic commands - ls, ps, chmod, etc. This server holds thousands of programs (converted Basic programs,... (4 Replies)
Discussion started by: citygov
4 Replies

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

9. UNIX for Dummies Questions & Answers

ACL vs privileges

Hello genius..! what do y'all think of these questions...? help appreciated...! Access Control Lists and privileges.... # Why both file ACLs and user permissions/privileges (not to be confused with rights in ACLs) are used in Windows access control (why not just use one of these)? # In... (1 Reply)
Discussion started by: heroine
1 Replies

10. 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
Login or Register to Ask a Question