1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| for i in {1..2}; do chown -R tomcat.tomcat /application/tomcat7_$i; done for i in {1..2}; do chmod g-w,o-rwx /application/tomcat7_$i; done
vim /tmp/run02.sh #!/bin/bash for i in {1..2} do for j in logs temp do chmod o-rwx /application/tomcat7_$i/$j done done
vim /tmp/run03.sh #!/bin/bash for i in {1..2} do for j in bin webapps conf do chmod g-w,o-rwx /application/tomcat7_$i/$j done done
for i in {1..2}; do chmod 770 /application/tomcat7_$i/conf/catalina.policy; done vim /tmp/run04.sh #!/bin/bash for i in {1..2} do for j in catalina.properties context.xml logging.properties server.xml tomcat-users.xml web.xml do chmod g-w,o-rwx /application/tomcat7_$i/conf/$j done done
|