File: realsecure.sh

package info (click to toggle)
imp 3%3A2.2.6-5.2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 5,476 kB
  • ctags: 766
  • sloc: php: 4,253; sh: 831; makefile: 98; perl: 50; pascal: 15
file content (29 lines) | stat: -rw-r--r-- 650 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh

MY_WEBOWNER="nobody.nobody"

chown $(MY_WEBOWNER) config/defaults.php3
chown $(MY_WEBOWNER) ../lib/horde.lib
chown $(MY_WEBOWNER) lib/db.lib
chown $(MY_WEBOWNER) lib/imp.lib
chown $(MY_WEBOWNER) lib/mime.lib
chown $(MY_WEBOWNER) lib/mimetypes.lib

chmod 500 config/defaults.php3
chmod 500 ../lib/horde.lib
chmod 500 lib/db.lib
chmod 500 lib/imp.lib
chmod 500 lib/mime.lib
chmod 500 lib/mimetypes.lib

chmod 700 scripts

chmod 000 setup.php3

echo 
echo I have made your configuration files, and libraries mode 0555
echo which is read / execute for everyone.
echo
echo And the setup.php3 is mode 0000 which is no access period.
echo 
echo