Ignore:
Timestamp:
12/05/2009 19:16:20 (2 years ago)
Author:
ccowart
Message:

Fixing up group permissions on /var/db/confman.

Fixes #110

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/confmancommon.sh.in

    r492 r506  
    133133fi 
    134134 
    135 # Test if the specified group exists before setting folder groups 
     135# Create and/or fix permissions on our local state directory 
    136136if ! [ -d "$REPO_DB" ] ; then 
    137         if ! [ conf_checkgroup ]; then 
    138                 $SUDO $install_cmd -d -o root -m 770 "$REPO_DB" 
    139         else 
    140                 $SUDO $install_cmd -d -o root -g $CONF_GROUP -m 770 "$REPO_DB" 
    141         fi 
    142         $SUDO chmod g+s "$REPO_DB" 
     137    $SUDO $install_cmd -d -o root -g $CONF_GROUP -m 2770 "$REPO_DB" 
    143138fi 
     139find $REPO_DB -not -group $CONF_GROUP -exec $SUDO chgrp $CONF_GROUP {} \; \ 
     140    -exec chmod g+r {} \; 
    144141 
    145142# And we'll set a trap: 
Note: See TracChangeset for help on using the changeset viewer.