-
Notifications
You must be signed in to change notification settings - Fork 0
/
update_permissions.sh
47 lines (39 loc) · 1.52 KB
/
update_permissions.sh
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
# Set base directory
BASE_DIR="/web/py2236"
# Set permissions for the base directory and its contents
chmod 711 "$BASE_DIR/graphics/"
# Set permissions for the files and directories in 'graphics'
chmod 644 "$BASE_DIR/graphics/index.html"
chmod 644 "$BASE_DIR/graphics/gpu_report.pdf"
chmod 644 "$BASE_DIR/graphics/multicore_report.pdf"
# Set permissions for homework directories and their contents
chmod 711 "$BASE_DIR/graphics/hw1/"
chmod 711 "$BASE_DIR/graphics/hw2/"
chmod 711 "$BASE_DIR/graphics/hw3/"
chmod 711 "$BASE_DIR/graphics/hw4/"
chmod 711 "$BASE_DIR/graphics/hw5/"
chmod 711 "$BASE_DIR/graphics/hw6/"
chmod 711 "$BASE_DIR/graphics/hw7/"
chmod 711 "$BASE_DIR/graphics/hw8/"
chmod 711 "$BASE_DIR/graphics/hw9/"
chmod 711 "$BASE_DIR/graphics/hw9_2/"
chmod 711 "$BASE_DIR/graphics/hw10/"
chmod 644 "$BASE_DIR/graphics/hw1/"*
chmod 644 "$BASE_DIR/graphics/hw2/"*
chmod 644 "$BASE_DIR/graphics/hw3/"*
chmod 644 "$BASE_DIR/graphics/hw4/"*
chmod 644 "$BASE_DIR/graphics/hw5/"*
chmod 644 "$BASE_DIR/graphics/hw6/"*
chmod 644 "$BASE_DIR/graphics/hw7/"*
chmod 644 "$BASE_DIR/graphics/hw8/"*
chmod 644 "$BASE_DIR/graphics/hw9/"*
chmod 644 "$BASE_DIR/graphics/hw9_2/"*
chmod 644 "$BASE_DIR/graphics/hw10/"*
chmod 711 "$BASE_DIR/graphics/hw8/textures/"
chmod 644 "$BASE_DIR/graphics/hw8/textures/"*
chmod 711 "$BASE_DIR/graphics/hw9/textures/"
chmod 644 "$BASE_DIR/graphics/hw9/textures/"*
chmod 711 "$BASE_DIR/graphics/hw10/textures/"
chmod 644 "$BASE_DIR/graphics/hw10/textures/"*
echo "Permissions have been updated successfully."