setfacl -m d:g:groupname:rw directory

Posted on 2010-01-04
Medium Priority
Last Modified: 2013-12-06
I am trying to understand this.

I understand what " setfacl -m u:larry:rw directory"
does  but what is this "d:g" : stuff ?

I searched the man page.
Question by:TIMFOX123

Accepted Solution

georgekraj earned 2000 total points
ID: 26177537

Here , "d" stands for default acl entry and "g" stands for group.

Default ACL entries:

Often, you will want all the files created in a directory to have certain ACL entries. For example, you might want to allow another person or a group to write to any file in a directory of yours where the two of you are working on something together.

You can put an ACL entry granting the desired access on every file in the directory, but every time you create a new file you will have to add that entry again. Using default ACL entries, you can get the system to do this for you automatically every time a file is created under that directory. Note: default entries are applicable only for directories

so here,

setfacl -m d:g:groupname:rw directory

This command specifies that each new file created under the directory named "directory" should have default "rw" permissions for the group "groupname".

Hope this helps.

Author Closing Comment

ID: 31672661
Hope it helps ? ???

It was all I needed.

you are great !

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating a Samba server for a small office. Ubuntu Linux and Samba can breathe new life into a retired PC and save an office money on new hardware/software. Our example server will have two hard disks, one exclusively for storing shared data. …
If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
Integration Management Part 2
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question