#!/bin/sh # Script for setting the rights after use of CVS # Some file have only read only access USERNAME=`whoami` if [ "$USERNAME" != "operateur" ]; then echo "specific to Hyperion" # Test for HYPERION # Force rights chown -R .mml /home/matlabML/ chmod -R a+rX /home/matlabML/ find /home/matlabML/ -type d -exec chmod o+r {} \; find /home/matlabML/ -type f -exec chmod g+rw {} \; find /home/matlabML/ -type d -exec chmod g+rw {} \; else echo "specific to controlroom" find /home/matlabML/ -type f -exec chmod u+rw {} \; find /home/matlabML/ -type d -exec chmod u+rw {} \; fi echo "setting rights on hyperion or controlroom" # HYPERION and CTRLROOM # set writable file for OpsData chmod -R u+w /home/matlabML/machine/SOLEIL/StorageRingOpsData chmod -R u+w /home/matlabML/machine/SOLEIL/LT1OpsData chmod -R u+w /home/matlabML/machine/SOLEIL/LT2OpsData chmod -R u+w /home/matlabML/machine/SOLEIL/BoosterOpsData # Test