• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 657
  • Last Modified:

setfacl -m d:g:groupname:rw directory

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.
0
TIMFOX123
Asked:
TIMFOX123
1 Solution
 
georgekrajCommented:

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.
0
 
TIMFOX123Author Commented:
Hope it helps ? ???

It was all I needed.

you are great !
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now