setfacl -m d:g:groupname:rw directory

Posted on 2010-01-04
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
    LVL 6

    Accepted Solution


    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

    Hope it helps ? ???

    It was all I needed.

    you are great !

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
    The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

    761 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

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now