head	1.44;
access;
symbols
	TIGRIS_1_1_0RC2:1.40.6.3
	TIGRIS_1_1_0RC1:1.40.6.3
	TIGRIS_1_1:1.40.6.3.0.2
	TIGRIS_1_0_8:1.40.6.3
	TIGRIS_1_0_8RC3:1.40.6.3
	TIGRIS_1_0_8RC2:1.40.6.3
	TIGRIS_1_0_8RC1:1.40.6.3
	TIGRIS_1_0_7:1.40.6.3
	TIGRIS_1_0_7RC3:1.40.6.3
	TIGRIS_1_0_7RC2:1.40.6.3
	TIGRIS_1_0_7RC1:1.40.6.2
	TIGRIS_1_0_6:1.40.6.2
	TIGRIS_1_0_6RC5:1.40.6.2
	TIGRIS_1_0_6RC4:1.40.6.2
	TIGRIS_1_0_6RC3:1.40.6.2
	TIGRIS_1_0_6RC2:1.40.6.2
	TIGRIS_1_0_6RC1:1.40.6.2
	TIGRIS_1_0_5:1.40.6.2
	TIGRIS_1_0_5RC6:1.40.6.2
	TIGRIS_1_0_5RC5:1.40.6.2
	TIGRIS_1_0_5RC4:1.40.6.2
	TIGRIS_1_0_5RC3:1.40.6.2
	TIGRIS_1_0_5RC2:1.40.6.2
	TIGRIS_1_0_5RC1:1.40.6.2
	TIGRIS_1_0_4:1.40.6.2
	TIGRIS_1_0_3:1.40.6.2
	TIGRIS_1_0_2:1.40.6.2
	TIGRIS_1_0_1:1.40.6.1
	TIGRIS_1_0:1.40.0.6
	TIGRIS_1_0_0:1.40
	TIGRIS_1_0_0_RC1:1.40.0.2
	HELM_PEER_PORT_BRANCH:1.38.0.6
	TIGRIS_0_9_2_4:1.38
	TIGRIS_0_9_2_3:1.38
	TIGRIS_0_9_2:1.38.0.4
	TIGRIS_0_9_0:1.38.0.2
	TIGRIS_0_8_4:1.32.0.2
	TIGRIS_710_FF:1.26
	TIGRIS_706:1.24
	TIGRIS_705:1.24
	TIGRIS_704:1.24
	TIGRIS_703:1.24
	TIGRIS_702:1.24
	TIGRIS_701:1.24
	TIGRIS_SEP_13_2000:1.18.0.2
	TIGRIS_BASELINE:1.21;
locks; strict;
comment	@# @;


1.44
date	2001.07.12.23.55.00;	author stack;	state Exp;
branches;
next	1.43;

1.43
date	2001.06.19.01.08.53;	author kmaples;	state Exp;
branches;
next	1.42;

1.42
date	2001.04.21.20.24.44;	author stack;	state Exp;
branches;
next	1.41;

1.41
date	2001.04.17.16.43.47;	author edk;	state Exp;
branches;
next	1.40;

1.40
date	2001.03.05.23.12.31;	author ms;	state Exp;
branches
	1.40.6.1;
next	1.39;

1.39
date	2001.03.03.01.04.00;	author ms;	state Exp;
branches;
next	1.38;

1.38
date	2000.12.21.02.54.25;	author lucas;	state Exp;
branches;
next	1.37;

1.37
date	2000.12.21.02.48.42;	author lucas;	state Exp;
branches;
next	1.36;

1.36
date	2000.12.18.20.07.50;	author thom;	state Exp;
branches;
next	1.35;

1.35
date	2000.12.15.22.41.31;	author kmaples;	state Exp;
branches;
next	1.34;

1.34
date	2000.12.12.18.48.38;	author lucas;	state Exp;
branches;
next	1.33;

1.33
date	2000.12.06.22.31.54;	author thom;	state Exp;
branches;
next	1.32;

1.32
date	2000.11.23.02.08.17;	author edk;	state Exp;
branches
	1.32.2.1;
next	1.31;

1.31
date	2000.11.22.18.38.07;	author thom;	state Exp;
branches;
next	1.30;

1.30
date	2000.11.21.22.43.28;	author thom;	state Exp;
branches;
next	1.29;

1.29
date	2000.11.16.07.37.47;	author lucas;	state Exp;
branches;
next	1.28;

1.28
date	2000.11.09.19.06.10;	author ed;	state Exp;
branches;
next	1.27;

1.27
date	2000.11.07.23.44.47;	author edk;	state Exp;
branches;
next	1.26;

1.26
date	2000.11.01.04.19.51;	author edk;	state Exp;
branches;
next	1.25;

1.25
date	2000.10.31.21.03.03;	author edk;	state Exp;
branches;
next	1.24;

1.24
date	2000.10.03.05.18.14;	author ed;	state Exp;
branches;
next	1.23;

1.23
date	2000.10.03.01.00.31;	author thom;	state Exp;
branches;
next	1.22;

1.22
date	2000.09.29.20.40.25;	author ed;	state Exp;
branches;
next	1.21;

1.21
date	2000.09.17.17.47.00;	author dlr;	state Exp;
branches;
next	1.20;

1.20
date	2000.09.17.03.18.04;	author kmaples;	state Exp;
branches;
next	1.19;

1.19
date	2000.09.13.23.30.53;	author kmaples;	state Exp;
branches;
next	1.18;

1.18
date	2000.08.15.09.18.53;	author ed;	state Exp;
branches
	1.18.2.1;
next	1.17;

1.17
date	2000.08.14.23.01.26;	author ed;	state Exp;
branches;
next	1.16;

1.16
date	2000.08.14.22.33.16;	author ed;	state Exp;
branches;
next	1.15;

1.15
date	2000.08.14.21.18.16;	author ed;	state Exp;
branches;
next	1.14;

1.14
date	2000.08.14.01.49.12;	author ed;	state Exp;
branches;
next	1.13;

1.13
date	2000.07.15.00.12.19;	author ed;	state Exp;
branches;
next	1.12;

1.12
date	2000.07.14.22.26.33;	author manoj;	state Exp;
branches;
next	1.11;

1.11
date	2000.07.14.20.37.49;	author jrobbins;	state Exp;
branches;
next	1.10;

1.10
date	2000.07.14.09.51.25;	author ryan;	state Exp;
branches;
next	1.9;

1.9
date	2000.07.13.08.57.36;	author manoj;	state Exp;
branches;
next	1.8;

1.8
date	2000.07.13.05.26.32;	author manoj;	state Exp;
branches;
next	1.7;

1.7
date	2000.07.12.05.47.41;	author jrobbins;	state Exp;
branches;
next	1.6;

1.6
date	2000.07.12.02.23.26;	author jrobbins;	state Exp;
branches;
next	1.5;

1.5
date	2000.07.11.22.23.08;	author jrobbins;	state Exp;
branches;
next	1.4;

1.4
date	2000.07.06.04.59.56;	author ryan;	state Exp;
branches;
next	1.3;

1.3
date	2000.07.06.01.45.52;	author ryan;	state Exp;
branches;
next	1.2;

1.2
date	2000.06.20.19.24.33;	author jrobbins;	state Exp;
branches;
next	1.1;

1.1
date	2000.06.20.02.01.56;	author jrobbins;	state Exp;
branches;
next	;

1.18.2.1
date	2000.10.06.00.26.19;	author edk;	state Exp;
branches;
next	1.18.2.2;

1.18.2.2
date	2000.11.09.17.49.40;	author ed;	state Exp;
branches;
next	1.18.2.3;

1.18.2.3
date	2000.11.09.19.01.53;	author ed;	state Exp;
branches;
next	1.18.2.4;

1.18.2.4
date	2000.12.17.23.23.52;	author jrobbins;	state Exp;
branches;
next	;

1.32.2.1
date	2000.12.06.08.10.49;	author lucas;	state Exp;
branches;
next	1.32.2.2;

1.32.2.2
date	2000.12.07.03.20.14;	author jrobbins;	state Exp;
branches;
next	1.32.2.3;

1.32.2.3
date	2000.12.13.06.30.23;	author lucas;	state Exp;
branches;
next	1.32.2.4;

1.32.2.4
date	2000.12.13.08.27.42;	author lucas;	state Exp;
branches;
next	1.32.2.5;

1.32.2.5
date	2000.12.13.23.26.07;	author lucas;	state Exp;
branches;
next	1.32.2.6;

1.32.2.6
date	2000.12.15.22.50.42;	author kmaples;	state Exp;
branches;
next	1.32.2.7;

1.32.2.7
date	2000.12.21.02.47.23;	author lucas;	state Exp;
branches;
next	;

1.40.6.1
date	2001.04.12.01.34.09;	author edk;	state Exp;
branches;
next	1.40.6.2;

1.40.6.2
date	2001.04.24.21.46.26;	author stack;	state Exp;
branches;
next	1.40.6.3;

1.40.6.3
date	2001.06.26.16.28.01;	author edk;	state Exp;
branches;
next	;


desc
@@


1.44
log
@Backing out proxy setup.  It doesn't work.  IZ19 on helm.tigris.org
(http://helm.tigris.org/issues/show_bug.cgi?id=19) dicusses why  it failed
and makes proposal for alternative tigris caching-proxy.
@
text
@#!/bin/sh
# patch_permissions: change the permissions on files in the sandbox

# CVS directory.
CVS_DIR=$SANDBOX/data/helm/cvs
CVSROOT_DIR=$CVS_DIR/repository/CVSROOT

# Now pass cvs off to the appropriate programmatic user:
 chown -R tigrisc.tigris $CVS_DIR

HTTP_LOCAL_CONF=$SANDBOX/conf/httpd_local.conf
if [ ! -f $HTTP_LOCAL_CONF ] ; then
     touch $SANDBOX/conf/httpd_local.conf
fi

 chmod 664 $CVSROOT_DIR/loginfo
 chmod 755 $CVSROOT_DIR/Emptydir

 chown tigrisc.httpd $CVSROOT_DIR/history
 chmod 664 $CVSROOT_DIR/history

 chown tigrisc.httpd $CVSROOT_DIR/val-tags
 chmod 664 $CVSROOT_DIR/val-tags

 chown -R tigrisc.tigris $SANDBOX/data/helm/htdoc
# ~upload is presumably /usr/local/tigris/data/helm/www/www/download/
 chown -R upload:upload ~upload
 chown -R tigrisa.tigris $SANDBOX/data/helm/apache
 chown -R tigrisq.tigris $SANDBOX/data/helm/qmail
 chown -R httpd:httpd $SANDBOX/data/helm/fileserv

if [ -d $SANDBOX/data/anzu ] ; then
 chown -R tigrisq.tigris $SANDBOX/data/anzu
 if [ -e $SANDBOX/data/anzu/secret ] ; then
   chgrp httpd $SANDBOX/data/anzu/secret
   chmod g+r $SANDBOX/data/anzu/secret
 fi
fi

if [ -d $SANDBOX/data/eyebrowse ] ; then
 chown -R tigrisq.tigris $SANDBOX/data/eyebrowse
fi


# Check the writable IZ directories:
if [ ! -d $SANDBOX/data/issuezilla/data ] ; then
  mkdir -p $SANDBOX/data/issuezilla/data
fi

if [ ! -d $SANDBOX/data/issuezilla/shadow ] ; then
  mkdir -p $SANDBOX/data/issuezilla/shadow
fi


 chown -R httpd.httpd $SANDBOX/data/issuezilla

 if [ ! -d $SANDBOX/log ] ; then
    mkdir $SANDBOX/log
 fi
 chown -R httpd.httpd $SANDBOX/log

# Newer tigris perl scripts related to automatic project creation:
 chown tigrisc.tigris $SANDBOX/helm/perl/scripts/apache-project-*
 chown tigrisc.tigris $SANDBOX/helm/perl/scripts/cvs-project-*
 chown tigrisc.tigris $SANDBOX/helm/perl/scripts/cvs-module-*

 chmod +s $SANDBOX/helm/perl/scripts/apache-project-*
 chmod +s $SANDBOX/helm/perl/scripts/cvs-project-*
 chmod +s $SANDBOX/helm/perl/scripts/cvs-module-*

# these scripts are used to view/change the members of specific
# mailing lists
 chown root.root $CVSROOT_DIR
 chmod o,g-w $CVSROOT_DIR

# cron script to update eyebrowse, needs to be group 
 chgrp tigrisq $SANDBOX/site/scripts/eyebrowse/eyebrowse
 chmod 755     $SANDBOX/site/scripts/eyebrowse/eyebrowse

CvsRootList="commit_prep commitinfo config cvsedit editinfo log_accum rcsinfo rcstemplate"
for file in $CvsRootList ;
do
  chown root.root $CVSROOT_DIR/$file
done
@


1.43
log
@Changes to store IZ's data under $SANDBOX/data/issuezilla/, along with
everyone else.  This relocates IZ's data/ and shadow/ directories there.
@
text
@a84 11

   
# If a proxy-cache directory under data, make it writeable
# by HTTP_USER else caching won't work.
#
PROXY_CACHE_DIR=${SANDBOX}/data/cache/httpd
if [ -d ${PROXY_CACHE_DIR} ];
then
    chown -R httpd:httpd ${PROXY_CACHE_DIR}
fi

@


1.42
log
@If a cache-dir under data, make it writeable by the httpd.conf User.  Otherwise, proxy-caching doesn't work.
@
text
@d46 2
a47 2
if [ ! -d $SANDBOX/issuezilla/data ] ; then
  mkdir $SANDBOX/issuezilla/data
d50 2
a51 2
if [ ! -d $SANDBOX/issuezilla/shadow ] ; then
  mkdir $SANDBOX/issuezilla/shadow
d55 2
a56 2
 chown -R httpd.httpd $SANDBOX/issuezilla/data
 chown -R httpd.httpd $SANDBOX/issuezilla/shadow
@


1.41
log
@remove dead stuff : chmod'ing MHonArc directories / www/www dir in htdocs,
and some of the setuid scripts which are (afaik) no longer in use.
@
text
@d87 9
@


1.40
log
@changed file perms on eyebrowse script
@
text
@a25 2
 chown -R tigrisq.tigris $SANDBOX/data/helm/htdoc/*/www/*-*
 chmod g+w $SANDBOX/data/helm/htdoc/*/www
a60 16

# tigris perl scripts setuid to the appropriate programmatic-users
 chown tigrisa.tigris $SANDBOX/helm/perl/cgi-helpers/ApacheConfig
 chown tigrisc.tigris $SANDBOX/helm/perl/cgi-helpers/ApacheModules
 chown tigrisc.tigris $SANDBOX/helm/perl/cgi-helpers/CVSloginfo
 chown tigrisc.tigris $SANDBOX/helm/perl/cgi-helpers/CVSmodules
 chown tigrisq.tigris $SANDBOX/helm/perl/cgi-helpers/QmailAlias
 chown tigrisq.tigris $SANDBOX/helm/perl/cgi-helpers/QmailLists


 chmod +s $SANDBOX/helm/perl/cgi-helpers/ApacheConfig
 chmod +s $SANDBOX/helm/perl/cgi-helpers/ApacheModules
 chmod +s $SANDBOX/helm/perl/cgi-helpers/CVSloginfo
 chmod +s $SANDBOX/helm/perl/cgi-helpers/CVSmodules
 chmod +s $SANDBOX/helm/perl/cgi-helpers/QmailAlias
 chmod +s $SANDBOX/helm/perl/cgi-helpers/QmailLists
@


1.40.6.1
log
@use -f test instead of -e (since it's portable)
@
text
@d36 1
a36 1
 if [ -f $SANDBOX/data/anzu/secret ] ; then
@


1.40.6.2
log
@Make sure proxy-cache directory is owned by the http USER.  If httpd
cannot write the cache dir, caching is off.

Reviewed by: Change buddied/reviewed by edk
@
text
@a104 9
# If a proxy-cache directory under data, make it writeable
# by HTTP_USER else caching won't work.
#
PROXY_CACHE_DIR=${SANDBOX}/data/cache/httpd
if [ -d ${PROXY_CACHE_DIR} ];
then
    chown -R httpd:httpd ${PROXY_CACHE_DIR}
fi

@


1.40.6.3
log
@we're not using MHonArc, remove the chown command which it required.
@
text
@d26 1
@


1.39
log
@fixed permissions so this script can run setuidgid
@
text
@d95 2
a96 2
 chgrp tigrisq $SANDBOX/site/scripts/eyebrowse/call_eyebrowse
 chmod 755     $SANDBOX/site/scripts/eyebrowse/call_eyebrowse
@


1.38
log
@updated
@
text
@d94 4
@


1.37
log
@updated
@
text
@d59 1
a59 1
 if [! -d $SANDBOX/log ] ; then
@


1.36
log
@move creation of missing dirs/files from path_perms to makefile
@
text
@d59 3
@


1.35
log
@For some reason which completely escapes me, the relevant lines were still
pointing at bugzilla rather than issuezilla.  Fixed.
@
text
@a7 37
# tigris programmatic-user directories
# check for a couple of files cvs would like before chown:
CVS_HISTORY=$CVSROOT_DIR/history
if [ ! -f $CVS_HISTORY ] ; then
    touch $CVS_HISTORY

    # TODO: Fix cvsweb so this doesn't need to be world writable.
    chmod a+w $CVS_HISTORY
fi

CVS_VAL_TAGS=$CVSROOT_DIR/val-tags
if [ ! -f $CVS_VAL_TAGS ] ; then
    touch $CVS_VAL_TAGS

    # TODO: Fix cvsweb so this doesn't need to be world writable.
    chmod a+w $CVS_VAL_TAGS
fi

CVS_LOGINFO=$CVSROOT_DIR/loginfo
if [ ! -f $CVS_LOGINFO ] ; then
     touch $CVS_LOGINFO
     chmod a+w $CVS_LOGINFO
fi

# create a Emptydir need for cvs pserver (see create_adm_p)
CVS_EMPTYDIR=$CVSROOT_DIR/Emptydir
if [ ! -d $CVS_EMPTYDIR ] ; then
    mkdir $CVS_EMPTYDIR
    chown tigrisa.tigris $CVS_EMPTYDIR
    chmod 755 $CVS_EMPTYDIR
fi

# create lock directory if it's not already present
if [ ! -d $CVS_DIR/lock ] ; then
    mkdir $CVS_DIR/lock
fi

d15 3
@


1.34
log
@Keeping in sync with the branch.  This changes permissions for the file upload/download directory
@
text
@d80 13
a92 2
 chown -R httpd.httpd $SANDBOX/bugzilla/data
 chown -R httpd.httpd $SANDBOX/bugzilla/shadow
@


1.33
log
@added Emptydir check and create code
@
text
@d66 1
@


1.32
log
@fix perms for the secret used to authenticate the webserver with the anzu
server
@
text
@d32 8
@


1.32.2.1
log
@httpd must be owner of fileserv directory

PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@a57 1
 chown -R httpd:httpd $SANDBOX/data/helm/fileserv
@


1.32.2.2
log
@moved over change from HEAD
@
text
@a31 8
# create a Emptydir need for cvs pserver (see create_adm_p)
CVS_EMPTYDIR=$CVSROOT_DIR/Emptydir
if [ ! -d $CVS_EMPTYDIR ] ; then
    mkdir $CVS_EMPTYDIR
    chown tigrisa.tigris $CVS_EMPTYDIR
    chmod 755 $CVS_EMPTYDIR
fi

@


1.32.2.3
log
@moving functionality into patch_permissions
@
text
@d82 1
a82 4
 if [ ! -f $SANDBOX/log ] ; then
    mkdir $SANDBOX/log
    chown -R httpd.httpd $SANDBOX/log
 fi
@


1.32.2.4
log
@look for directory, not file
@
text
@d82 1
a82 1
 if [ ! -d $SANDBOX/log ] ; then
@


1.32.2.5
log
@put creation back in sandboxctl as well for developer sandboxen
@
text
@d84 1
a85 1
 chown -R httpd.httpd $SANDBOX/log
@


1.32.2.6
log
@Importing into branch: for some reason, this had been pointing at bugzilla.
@
text
@d80 5
a84 13

# Check the writable IZ directories:
if [ ! -d $SANDBOX/issuezilla/data ] ; then
  mkdir $SANDBOX/issuezilla/data
fi

if [ ! -d $SANDBOX/issuezilla/shadow ] ; then
  mkdir $SANDBOX/issuezilla/shadow
fi


 chown -R httpd.httpd $SANDBOX/issuezilla/data
 chown -R httpd.httpd $SANDBOX/issuezilla/shadow
@


1.32.2.7
log
@updated
@
text
@d93 1
a93 4
 if [ ! -d $SANDBOX/log ] ; then
    mkdir $SANDBOX/log
 fi
    chown -R httpd.httpd $SANDBOX/log
@


1.31
log
@remove loginfo for chown
@
text
@d61 4
@


1.30
log
@add chown to some cvsroot files
@
text
@d101 1
a101 1
CvsRootList="commit_prep commitinfo config cvsedit editinfo log_accum loginfo rcsinfo rcstemplate"
@


1.29
log
@Since the scripts were removed, we don't need to mess with their permissions.

PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@a97 1

d101 7
@


1.28
log
@create the lock directory if it doesn't already exist.
@
text
@a97 7
 chown tigrisq.tigris $SANDBOX/helm/perl/scripts/list-list
 chown tigrisq.tigris $SANDBOX/helm/perl/scripts/list-subscribe
 chown tigrisq.tigris $SANDBOX/helm/perl/scripts/list-unsubscribe

 chmod +s $SANDBOX/helm/perl/scripts/list-list
 chmod +s $SANDBOX/helm/perl/scripts/list-subscribe
 chmod +s $SANDBOX/helm/perl/scripts/list-unsubscribe
@


1.27
log
@give correct ownership to eyebrowse data directory in a root sandbox
@
text
@d32 5
d38 1
a38 1
 chown -R tigrisc.tigris $SANDBOX/data/helm/cvs
@


1.26
log
@chown anzu's data directory while we're at it.
@
text
@d58 4
@


1.25
log
@fixed broken paths to history/val-tags & use a token to avoid
redundancy in a few other places.
@
text
@d54 4
@


1.24
log
@~upload needs to have the right ownership.  i also removed a bogus
comment about the history file.
@
text
@d6 1
d10 1
a10 1
CVS_HISTORY=$CVS_DIR/repository/history
d18 1
a18 1
CVS_VAL_TAGS=$CVS_DIR/repository/val-tags
d26 1
a26 1
CVS_LOGINFO=$CVS_DIR/repository/CVSROOT/loginfo
d40 2
a41 2
 chown tigrisc.httpd $SANDBOX/data/helm/cvs/repository/history
 chmod 664 $SANDBOX/data/helm/cvs/repository/history
d43 2
a44 2
 chown tigrisc.httpd $SANDBOX/data/helm/cvs/repository/val-tags
 chmod 664 $SANDBOX/data/helm/cvs/repository/val-tags
d93 2
a94 2
 chown root.root $SANDBOX/data/helm/cvs/repository/CVSROOT
 chmod o,g-w $SANDBOX/data/helm/cvs/repository/CVSROOT
@


1.23
log
@added val-tags to the set
@
text
@d48 2
a93 4

# remove this file, it prevents cvsweb from working
# JER: needed?
# /bin/rm -f $SANDBOX/data/helm/cvs/repository/CVSROOT/history
@


1.22
log
@right now the webmodules directories need to allow group writes -- so we
can create MHonArc archive directories.  bleah.  putting the MHonArc
archives elsewhere would be much better.
@
text
@d17 8
d41 4
@


1.21
log
@added some constants to remove magic strings
@
text
@d35 1
@


1.20
log
@Fixed bad path to file.
@
text
@d4 3
d9 6
a14 5
if [ ! -f $SANDBOX/data/helm/cvs/repository/history ] ; then
     touch $SANDBOX/data/helm/cvs/repository/history
    # hopefully we'll soon fix cvsweb so this doesn't need to be world
    # writable:
     chmod a+w $SANDBOX/data/helm/cvs/repository/history
d17 4
a20 3
if [ ! -f $SANDBOX/data/helm/cvs/repository/CVSROOT/loginfo ] ; then
     touch $SANDBOX/data/helm/cvs/repository/CVSROOT/loginfo
     chmod a+w $SANDBOX/data/helm/cvs/repository/CVSROOT/loginfo
d26 2
a27 1
if [ ! -f $SANDBOX/conf/httpd_local.conf ] ; then
@


1.19
log
@Added lines to chown project creation scripts to the appropriate programmatic
users
@
text
@d15 1
a15 1
     chmod a+w $SANDBOX/data/helm/cvs/repository/history
@


1.18
log
@create http_local.conf if it doesn't already exist -- this is just a place
to hang local changes (until we have a more general way to handle them)
to the httpd configuration.
@
text
@d5 1
a5 1
sudo chown -R tigrisc.tigris $SANDBOX/data/helm/cvs
d7 1
a7 1
    sudo touch $SANDBOX/data/helm/cvs/repository/history
d10 1
a10 1
    sudo chmod a+w $SANDBOX/data/helm/cvs/repository/history
d13 8
d22 1
a22 1
    sudo touch $SANDBOX/conf/httpd_local.conf
d25 10
a34 10
sudo chown tigrisc.httpd $SANDBOX/data/helm/cvs/repository/history
sudo chmod 664 $SANDBOX/data/helm/cvs/repository/history
sudo chown -R tigrisc.tigris $SANDBOX/data/helm/htdoc
sudo chown -R tigrisq.tigris $SANDBOX/data/helm/htdoc/*/www/*-*
sudo chown -R tigrisa.tigris $SANDBOX/data/helm/apache
sudo chown -R tigrisq.tigris $SANDBOX/data/helm/qmail

sudo chown -R httpd.httpd $SANDBOX/bugzilla/data
sudo chown -R httpd.httpd $SANDBOX/bugzilla/shadow
sudo chown -R httpd.httpd $SANDBOX/log
d37 23
a59 13
sudo chown tigrisa.tigris $SANDBOX/helm/perl/cgi-helpers/ApacheConfig
sudo chown tigrisc.tigris $SANDBOX/helm/perl/cgi-helpers/ApacheModules
sudo chown tigrisc.tigris $SANDBOX/helm/perl/cgi-helpers/CVSloginfo
sudo chown tigrisc.tigris $SANDBOX/helm/perl/cgi-helpers/CVSmodules
sudo chown tigrisq.tigris $SANDBOX/helm/perl/cgi-helpers/QmailAlias
sudo chown tigrisq.tigris $SANDBOX/helm/perl/cgi-helpers/QmailLists

sudo chmod +s $SANDBOX/helm/perl/cgi-helpers/ApacheConfig
sudo chmod +s $SANDBOX/helm/perl/cgi-helpers/ApacheModules
sudo chmod +s $SANDBOX/helm/perl/cgi-helpers/CVSloginfo
sudo chmod +s $SANDBOX/helm/perl/cgi-helpers/CVSmodules
sudo chmod +s $SANDBOX/helm/perl/cgi-helpers/QmailAlias
sudo chmod +s $SANDBOX/helm/perl/cgi-helpers/QmailLists
d63 7
a69 7
sudo chown tigrisq.tigris $SANDBOX/helm/perl/scripts/list-list
sudo chown tigrisq.tigris $SANDBOX/helm/perl/scripts/list-subscribe
sudo chown tigrisq.tigris $SANDBOX/helm/perl/scripts/list-unsubscribe

sudo chmod +s $SANDBOX/helm/perl/scripts/list-list
sudo chmod +s $SANDBOX/helm/perl/scripts/list-subscribe
sudo chmod +s $SANDBOX/helm/perl/scripts/list-unsubscribe
d71 2
a72 2
sudo chown root.root $SANDBOX/data/helm/cvs/repository/CVSROOT
sudo chmod o,g-w $SANDBOX/data/helm/cvs/repository/CVSROOT
d76 2
a77 1
#sudo /bin/rm -f $SANDBOX/data/helm/cvs/repository/CVSROOT/history
@


1.18.2.1
log
@add group write perm for MHonArc archive directory creation
@
text
@a19 1
sudo chmod g+w $SANDBOX/data/helm/htdoc/*/www
@


1.18.2.2
log
@patch_permissions has been changed not to use sudo (so root doesn't have
to be in /etc/sudoers) and configure.pl has been changed to support
overrides of the generated tokens (useful for caching proxy setups).
@
text
@d5 1
a5 1
chown -R tigrisc.tigris $SANDBOX/data/helm/cvs
d7 1
a7 1
    touch $SANDBOX/data/helm/cvs/repository/history
d10 1
a10 1
    chmod a+w $SANDBOX/data/helm/cvs/repository/history
d14 1
a14 1
    touch $SANDBOX/conf/httpd_local.conf
d17 11
a27 11
chown tigrisc.httpd $SANDBOX/data/helm/cvs/repository/history
chmod 664 $SANDBOX/data/helm/cvs/repository/history
chown -R tigrisc.tigris $SANDBOX/data/helm/htdoc
chmod g+w $SANDBOX/data/helm/htdoc/*/www
chown -R tigrisq.tigris $SANDBOX/data/helm/htdoc/*/www/*-*
chown -R tigrisa.tigris $SANDBOX/data/helm/apache
chown -R tigrisq.tigris $SANDBOX/data/helm/qmail

chown -R httpd.httpd $SANDBOX/bugzilla/data
chown -R httpd.httpd $SANDBOX/bugzilla/shadow
chown -R httpd.httpd $SANDBOX/log
d30 13
a42 13
chown tigrisa.tigris $SANDBOX/helm/perl/cgi-helpers/ApacheConfig
chown tigrisc.tigris $SANDBOX/helm/perl/cgi-helpers/ApacheModules
chown tigrisc.tigris $SANDBOX/helm/perl/cgi-helpers/CVSloginfo
chown tigrisc.tigris $SANDBOX/helm/perl/cgi-helpers/CVSmodules
chown tigrisq.tigris $SANDBOX/helm/perl/cgi-helpers/QmailAlias
chown tigrisq.tigris $SANDBOX/helm/perl/cgi-helpers/QmailLists

chmod +s $SANDBOX/helm/perl/cgi-helpers/ApacheConfig
chmod +s $SANDBOX/helm/perl/cgi-helpers/ApacheModules
chmod +s $SANDBOX/helm/perl/cgi-helpers/CVSloginfo
chmod +s $SANDBOX/helm/perl/cgi-helpers/CVSmodules
chmod +s $SANDBOX/helm/perl/cgi-helpers/QmailAlias
chmod +s $SANDBOX/helm/perl/cgi-helpers/QmailLists
d46 7
a52 7
chown tigrisq.tigris $SANDBOX/helm/perl/scripts/list-list
chown tigrisq.tigris $SANDBOX/helm/perl/scripts/list-subscribe
chown tigrisq.tigris $SANDBOX/helm/perl/scripts/list-unsubscribe

chmod +s $SANDBOX/helm/perl/scripts/list-list
chmod +s $SANDBOX/helm/perl/scripts/list-subscribe
chmod +s $SANDBOX/helm/perl/scripts/list-unsubscribe
d54 2
a55 2
chown root.root $SANDBOX/data/helm/cvs/repository/CVSROOT
chmod o,g-w $SANDBOX/data/helm/cvs/repository/CVSROOT
d59 1
a59 1
#/bin/rm -f $SANDBOX/data/helm/cvs/repository/CVSROOT/history
@


1.18.2.3
log
@create the cvs log directory if it's not already present.
@
text
@a4 4
if [ ! -d $SANDBOX/data/helm/cvs/lock ] ; then
    mkdir $SANDBOX/data/helm/cvs/lock
fi

@


1.18.2.4
log
@corrected location of history file
@
text
@a3 5

# CVS directory.
CVS_DIR=$SANDBOX/data/helm/cvs
CVSROOT_DIR=$CVS_DIR/repository/CVSROOT

d10 2
a11 2
if [ ! -f $CVSROOT_DIR/history ] ; then
    touch $CVSROOT_DIR/history
d14 1
a14 1
    chmod a+w $CVSROOT_DIR/history
d21 2
a22 2
chown tigrisc.httpd $CVSROOT_DIR/history
chmod 664 $CVSROOT_DIR/history
@


1.17
log
@remove the chmod a+x lines, which aren't needed now that configure.pl is
fixed (in that it maintains permissions from cvs, which should be correct).
@
text
@d12 5
@


1.16
log
@"fix" permissions of files in CVSROOT.  we need a commit_check script,
to prevent people from making changes to loginfo, log_accum, etc. --
but until that's present, we should prevent anything from being checked
in by making the directory 755 root:root.  explicitly make log_accum
executable ...
@
text
@a30 8
sudo chmod a+x $SANDBOX/helm/perl/cgi-helpers/ApacheConfig \
        $SANDBOX/helm/perl/cgi-helpers/ApacheModules \
        $SANDBOX/helm/perl/cgi-helpers/CVSloginfo \
        $SANDBOX/helm/perl/cgi-helpers/CVSmodules \
        $SANDBOX/helm/perl/cgi-helpers/QmailAlias \
        $SANDBOX/helm/perl/cgi-helpers/QmailLists  \
        $SANDBOX/helm/bin/webnewmail

a43 4
sudo chmod a+x $SANDBOX/helm/perl/scripts/list-list
sudo chmod a+x $SANDBOX/helm/perl/scripts/list-subscribe
sudo chmod a+x $SANDBOX/helm/perl/scripts/list-unsubscribe

a47 5
sudo chmod a+x $SANDBOX/scripts/apachectl
sudo chmod a+x $SANDBOX/helm/perl/cgi/update.cgi
sudo chmod a+x $SANDBOX/helm/perl/cgi/local/maillist.cgi

sudo chmod a+x $SANDBOX/data/helm/cvs/repository/CVSROOT/log_accum
@


1.15
log
@better permissions, based on problems encountered while following the
instructions.  generally, this meant making scripts executable.  the
the change to the ownership of $SANDBOX/data/helm/htdoc/*/www/*-* is
required until the mail archives are moved elsewhere.
@
text
@d7 4
a10 1
    touch $SANDBOX/data/helm/cvs/repository/history
d63 4
@


1.14
log
@create the history file if it doesn't already exist
@
text
@d12 1
d21 14
a34 6
sudo chown -R tigrisa.tigris $SANDBOX/helm/perl/cgi-helpers/ApacheConfig
sudo chown -R tigrisc.tigris $SANDBOX/helm/perl/cgi-helpers/ApacheModules
sudo chown -R tigrisc.tigris $SANDBOX/helm/perl/cgi-helpers/CVSloginfo
sudo chown -R tigrisc.tigris $SANDBOX/helm/perl/cgi-helpers/CVSmodules
sudo chown -R tigrisq.tigris $SANDBOX/helm/perl/cgi-helpers/QmailAlias
sudo chown -R tigrisq.tigris $SANDBOX/helm/perl/cgi-helpers/QmailLists
d45 15
a59 7
sudo chown -R tigrisq.tigris $SANDBOX/helm/perl/scripts/list-list
sudo chown -R tigrisq.tigris $SANDBOX/helm/perl/scripts/list-subscribe
sudo chown -R tigrisq.tigris $SANDBOX/helm/perl/scripts/list-unsubscribe

sudo chmod u+s $SANDBOX/helm/perl/scripts/list-list
sudo chmod u+s $SANDBOX/helm/perl/scripts/list-subscribe
sudo chmod u+s $SANDBOX/helm/perl/scripts/list-unsubscribe
@


1.13
log
@cover the scripts used by ProjMailFileEdit (which is still misnamed) to
view/edit the members of mailing lists.
@
text
@d6 3
@


1.12
log
@Manoj = lame. Undo this change. It doesn't perform its objective, and
it breaks stuff too.
@
text
@d31 5
d37 3
@


1.11
log
@Move user creation to a seperate script.
@
text
@a8 1
sudo chmod 664 $SANDBOX/data/helm/htdoc
@


1.10
log
@added code to create tigris group and tigris(a)(c)(q) users if they do not exist.
@
text
@a3 11
# create the users if they haven't already been
groupadd tigris || true
useradd -r -d $SANDBOX/data/helm/cvs -c "Tigris CVS User" -s "/bin/false" \
    -G tigris tigrisc || true
useradd -r -d $SANDBOX/data/helm/apache -c "Tigris Apache User" -s "/bin/false" \
    -G tigris tigrisa || true
useradd -r -d $SANDBOX/data/helm/qmail -c "Tigris Qmail User" -s "/bin/false" \
    -G tigris tigrisq || true



d12 4
@


1.9
log
@The htdoc directory needs to be writable by mhonarc for now. bleh.
@
text
@d4 11
@


1.8
log
@set the history file's permissions appropriately
@
text
@d9 1
@


1.7
log
@added the elusive -R
@
text
@d6 2
@


1.6
log
@corrected paths of helper scripts that need to be setuid
@
text
@d11 6
a16 6
sudo chown tigrisa.tigris $SANDBOX/helm/perl/cgi-helpers/ApacheConfig
sudo chown tigrisc.tigris $SANDBOX/helm/perl/cgi-helpers/ApacheModules
sudo chown tigrisc.tigris $SANDBOX/helm/perl/cgi-helpers/CVSloginfo
sudo chown tigrisc.tigris $SANDBOX/helm/perl/cgi-helpers/CVSmodules
sudo chown tigrisq.tigris $SANDBOX/helm/perl/cgi-helpers/QmailAlias
sudo chown tigrisq.tigris $SANDBOX/helm/perl/cgi-helpers/QmailLists
@


1.5
log
@updated paths to data files
@
text
@d11 13
a23 6
sudo chown tigrisc.tigris $SANDBOX/helm/perl/Helm/CVSloginfo.pm
sudo chown tigrisc.tigris $SANDBOX/helm/perl/Helm/CVSmodules.pm
sudo chown tigrisa.tigris $SANDBOX/helm/perl/Helm/ApacheConfig.pm 
sudo chown tigrisa.tigris $SANDBOX/helm/perl/Helm/ApacheModules.pm
sudo chown tigrisq.tigris $SANDBOX/helm/perl/Helm/QmailAlias.pm
sudo chown tigrisq.tigris $SANDBOX/helm/perl/Helm/QmailLists.pm
a24 6
sudo chmod +s $SANDBOX/helm/perl/Helm/CVSloginfo.pm
sudo chmod +s $SANDBOX/helm/perl/Helm/CVSmodules.pm
sudo chmod +s $SANDBOX/helm/perl/Helm/ApacheConfig.pm 
sudo chmod +s $SANDBOX/helm/perl/Helm/ApacheModules.pm
sudo chmod +s $SANDBOX/helm/perl/Helm/QmailAlias.pm
sudo chmod +s $SANDBOX/helm/perl/Helm/QmailLists.pm
@


1.4
log
@added -f for rm because it was crapping out.
@
text
@d5 4
a8 3
sudo chown -R tigrisc.tigris $SANDBOX/tigrisc
sudo chown -R tigrisa.tigris $SANDBOX/tigrisa
sudo chown -R tigrisq.tigris $SANDBOX/tigrisq
a25 3
# web publishing directory
sudo chown -R tigrisc.tigris  $SANDBOX/html

d27 2
a28 1
sudo /bin/rm -f $SANDBOX/tigrisc/repository/CVSROOT/history
@


1.3
log
@This is an executable.
@
text
@d29 1
a29 1
sudo /bin/rm $SANDBOX/tigrisc/repository/CVSROOT/history
@


1.2
log
@corrected typos
@
text
@d1 2
a2 2
# change the permissions on files in the sandbox

@


1.1
log
@file to patch up file permissions after the code has all been checked out
@
text
@d10 6
a15 6
sudo chown tigrisc.tigris $SANDBOX/helm/perl/Helm/CVSloginfo
sudo chown tigrisc.tigris $SANDBOX/helm/perl/Helm/CVSmodules
sudo chown tigrisa.tigris $SANDBOX/helm/perl/Helm/ApacheConfig 
sudo chown tigrisa.tigris $SANDBOX/helm/perl/Helm/ApacheModules
sudo chown tigrisq.tigris $SANDBOX/helm/perl/Helm/QmailAlias
sudo chown tigrisq.tigris $SANDBOX/helm/perl/Helm/QmailLists
d17 6
a22 6
sudo chmod +s $SANDBOX/helm/perl/Helm/CVSloginfo
sudo chmod +s $SANDBOX/helm/perl/Helm/CVSmodules
sudo chmod +s $SANDBOX/helm/perl/Helm/ApacheConfig 
sudo chmod +s $SANDBOX/helm/perl/Helm/ApacheModules
sudo chmod +s $SANDBOX/helm/perl/Helm/QmailAlias
sudo chmod +s $SANDBOX/helm/perl/Helm/QmailLists
d29 1
a29 1
sudo /bin/rf $SANDBOX/tigrisc/repository/CVSROOT/history
@

