PCCS MySQLDatabase Admin Tool version 1.3.4


/bin/ -> fix_perm.sh

1  #!/bin/sh
2 
3  # fix_perm.sh
4  # PCCS MySQLDatabase Admin Tool - http://www.pccs-linux.com/pccsmysqladm
5  # Created: 10-12-2000
6  # -- used to secure file system
7  # -- added directory permissions
8  # updated 10-15-2000
9  # -- changed app_path variable
10  # -- completed script including all files
11 
12  # Modify the variables below
13 
14  # APP_PATH = path to pccs_mysqladm
15  # APP_PATH=/home/www/htdocs/pccs_mysqladm
16 
17  APP_PATH=$PWD
18 
19  # httpdgroup = user httpd runs as
20  httpdgroup=nobody
21 
22  if [ -d $APP_PATH ] ; then
23          cd $APP_PATH
24          chmod 644 *.php
25          chmod 644 robots.txt
26          chmod 775 DOCS/
27          chmod 666 DOCS/*
28          chmod 655 incs/*
29          chmod 775 tmp/
30          chmod 775 logs/
31          chmod 666 logs/*
32          chmod 754 images/
33          chmod 775 installscript/
34          chmod 666 installscript/*
35          chmod 775 dbdumps/
36          chmod 666 dbdumps/*
37          chmod 775 dumpfiles/
38          chmod 666 dumpfiles/*
39          chmod 775 exports/
40          chmod 666 exports/*
41          chmod 775 genapp/
42          chmod 666 genapp/*
43          chmod 775 rptfiles/
44          chmod 666 rptfiles/*
45          chmod 775 xml/
46          chmod 666 xml/*
47          chown root:$httpdgroup -R ./*
48          touch logs/.INSTALLED
49          cd -
50          echo "Done setting permissions on directories."
51          exit;
52  else
53          echo "ERROR: $APP_PATH does not exist."
54          echo "Edit the path at the top of this script and try again."
55          exit;
56  fi;
57 
58 
59 


Generated: Sat Jan 27 15:40:36 2001 Generated by PHPXref 0.1.2
PCCS-Linux.COM ::ource Advocate Articles catalogue
2000 2002