#!/bin/sh

echo __________________________________________________________________
echo
echo Created Dec 10, 2000 by Zoltan Milosevic - zoltanm@nickname.net
echo
echo This batch file sets the proper file permissions on Unix for the
echo Start Page Script.  Use "setperms.cmd" for Windows systems.
echo
echo To run, open a command prompt or telnet window and navigate to
echo the folder just above the "data" data folder.  Type the name for
echo this script, and hit Enter.  All proper permissions will be set.
echo
echo Run this file from an account which has change permission rights
echo for all files in the "data" folder.  Typically the root or
echo file owner accounts would be appropriate.
echo
echo For more information, visit http://www.xav.com/scripts/start/
echo
echo __________________________________________________________________
echo

echo Setting permissions...

chmod 755 start.*
cd data
chmod 777 .
chmod -R 766 *
cd ..
echo

echo __________________________________________________________________
echo
echo Note: if StartPage has already been installed, then some operations
echo will fail as \"chmod: xxx.txt: Operation not permitted\".  This is
echo expected and is not a problem.
echo
echo Permissions finished.
echo __________________________________________________________________
echo


