if [ $FB_CLIENT == n ]; then

# we do this here, so that things are not tracked, as these files are 
# constantly modified in normal use
local FF FileName DB LCK                        &&

cd $FB_PREFIX                                   &&
  chown -R root:root $FB_PREFIX                 &&
  chmod -R uga-w $FB_PREFIX                     &&

  cd bin                                        &&

# Everyone may execute clients
  chmod 0555 *                                  &&

# Shell scripts changing security attributes are for root only
  chmod 0500 *.sh                               &&

  cd ..                                         &&
# Security database
# Nobody besides firebird permitted to even read this file
  chown firebird:firebird security*.fdb         &&
  chmod 0600 security*.fdb                      &&
# all database should be owned by firebird
  for DB in `ls examples/empbuild/*.fdb`
    do 
      chmod ug+w $DB                            &&
      chown firebird:firebird $DB
    done                                        &&

# create lock files
  LCK=$INSTALL_ROOT/var/lock/firebird            &&
  mkdir -p $LCK                                  &&
  for FF in isc_init1 isc_lock1 isc_event1 isc_guard1
    do
      FileName=$FF.`hostname`                    &&
      touch $LCK/$FileName                       &&
      chown firebird:firebird $LCK/$FileName     &&
      chmod u+w $LCK/$FileName                   &&
      ln -sf $TRACK_ROOT/var/lock/firebird/$FileName ./
    done					 &&

# log file
  mkdir -p $INSTALL_ROOT/var/log/				&&
  touch  $INSTALL_ROOT/var/log/firebird.log			&&
  chown firebird:firebird $INSTALL_ROOT/var/log/firebird.log	&&
  chmod o=,ug=rw $INSTALL_ROOT/var/log/firebird.log		&&
  ln -sf $TRACK_ROOT/var/log/firebird.log ./
fi
