source: MML/trunk/script/setMMLRight.sh @ 4

Last change on this file since 4 was 4, checked in by zhangj, 10 years ago

Initial import--MML version from SOLEIL@2013

File size: 919 bytes
Line 
1#!/bin/sh
2# Script for setting the rights after use of CVS
3# Some file have only read only access
4USERNAME=`whoami`
5if [ "$USERNAME" != "operateur" ]; then
6echo "specific to Hyperion"
7# Test for HYPERION
8# Force rights
9chown -R .mml /home/matlabML/
10chmod -R a+rX /home/matlabML/
11find /home/matlabML/ -type d -exec chmod o+r {} \;
12find /home/matlabML/ -type f -exec chmod g+rw {} \;
13find /home/matlabML/ -type d -exec chmod g+rw {} \;
14else
15echo "specific to controlroom"
16find /home/matlabML/ -type f -exec chmod u+rw {} \;
17find /home/matlabML/ -type d -exec chmod u+rw {} \;
18fi
19
20echo "setting rights on hyperion or controlroom"
21
22# HYPERION and CTRLROOM
23# set writable file for OpsData
24chmod -R u+w /home/matlabML/machine/SOLEIL/StorageRingOpsData
25chmod -R u+w /home/matlabML/machine/SOLEIL/LT1OpsData
26chmod -R u+w /home/matlabML/machine/SOLEIL/LT2OpsData
27chmod -R u+w /home/matlabML/machine/SOLEIL/BoosterOpsData
28# Test
Note: See TracBrowser for help on using the repository browser.