folder permissions

Posted on 2006-05-25
Last Modified: 2010-04-22
I am trying to set up a shared folder for a given group on FC4

I have am using the GID to set the group ownership of all new files/sub-directories created in that folder. This works ok but for one glitch. all new folders/files are not writable to members of the group. how to i set this as a default.

Question by:PhillO
    LVL 24

    Accepted Solution

    change your /etc/bashrc file.. locate the lines like:

    if [ $UID -gt 99 ] && [ "`id -gn`" = "`id -un`" ]; then
        umask 002
        umask 022


    # if [ $UID -gt 99 ] && [ "`id -gn`" = "`id -un`" ]; then
    #    umask 002
    # else
        umask 022
    # fi


    Author Comment


    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Suggested Solutions

    ​Being a Managed Services Provider (MSP) has presented you  with challenges in the past— and by meeting those challenges you’ve reaped the rewards of success.  In 2014, challenges and rewards remain; but as the Internet and business environment evol…
    Hello EE, Today we will learn how to send all your network traffic through Tor which is useful to get around censorship and being tracked all together to a certain degree. This article assumes you will be using Linux, have a minimal knowledge of …
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    This video discusses moving either the default database or any database to a new volume.

    754 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

    19 Experts available now in Live!

    Get 1:1 Help Now