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 |
---|
4 | USERNAME=`whoami` |
---|
5 | if [ "$USERNAME" != "operateur" ]; then |
---|
6 | echo "specific to Hyperion" |
---|
7 | # Test for HYPERION |
---|
8 | # Force rights |
---|
9 | chown -R .mml /home/matlabML/ |
---|
10 | chmod -R a+rX /home/matlabML/ |
---|
11 | find /home/matlabML/ -type d -exec chmod o+r {} \; |
---|
12 | find /home/matlabML/ -type f -exec chmod g+rw {} \; |
---|
13 | find /home/matlabML/ -type d -exec chmod g+rw {} \; |
---|
14 | else |
---|
15 | echo "specific to controlroom" |
---|
16 | find /home/matlabML/ -type f -exec chmod u+rw {} \; |
---|
17 | find /home/matlabML/ -type d -exec chmod u+rw {} \; |
---|
18 | fi |
---|
19 | |
---|
20 | echo "setting rights on hyperion or controlroom" |
---|
21 | |
---|
22 | # HYPERION and CTRLROOM |
---|
23 | # set writable file for OpsData |
---|
24 | chmod -R u+w /home/matlabML/machine/SOLEIL/StorageRingOpsData |
---|
25 | chmod -R u+w /home/matlabML/machine/SOLEIL/LT1OpsData |
---|
26 | chmod -R u+w /home/matlabML/machine/SOLEIL/LT2OpsData |
---|
27 | chmod -R u+w /home/matlabML/machine/SOLEIL/BoosterOpsData |
---|
28 | # Test |
---|
Note: See
TracBrowser
for help on using the repository browser.