Changeset 506


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

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

Fixes #110

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/confman.conf.5.in

    r462 r506  
    135135be treated as singularities by 
    136136.Xr confman 8 . 
     137.It CONF_GROUP 
     138Defaults to "wheel". Specify which  
     139.Xr group 5  
     140should have access to various state files. 
    137141.It CONF_WARNING 
    138142This is the first line of confman banners for managed files. 
  • 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.