-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTutorial_notes.txt
More file actions
151 lines (100 loc) · 3.46 KB
/
Copy pathTutorial_notes.txt
File metadata and controls
151 lines (100 loc) · 3.46 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
########################
# Notes for tutorial setup on Narval
# April 2026
#######################
# Give acces to Vincent
setfacl -m u:vfett:x /home/yueyu
setfacl -m u:vfett:x /home/yueyu/scratch
setfacl -R -m u:vfett:rwx /home/yueyu/scratch/GBS_workshop
# with x will not read my files in parent dir, but allow to pass through
# rwx will allow access to the GBS_workshop dir
# Give access to all other pariticpants
setfacl -m u:creno:x /home/yueyu
setfacl -m u:creno:x /home/yueyu/scratch
setfacl -R -m u:creno:rwx /home/yueyu/scratch/GBS_workshop
setfacl -m u:esun:x /home/yueyu
setfacl -m u:esun:x /home/yueyu/scratch
setfacl -R -m u:esun:rwx /home/yueyu/scratch/GBS_workshop
setfacl -m u:witold:x /home/yueyu
setfacl -m u:witold:x /home/yueyu/scratch
setfacl -R -m u:witold:rwx /home/yueyu/scratch/GBS_workshop
setfacl -m u:kaligua:x /home/yueyu
setfacl -m u:kaligua:x /home/yueyu/scratch
setfacl -R -m u:kaligua:rwx /home/yueyu/scratch/GBS_workshop
setfacl -m u:katiechu:x /home/yueyu
setfacl -m u:katiechu:x /home/yueyu/scratch
setfacl -R -m u:katiechu:rwx /home/yueyu/scratch/GBS_workshop
setfacl -m u:natberco:x /home/yueyu
setfacl -m u:natberco:x /home/yueyu/scratch
setfacl -R -m u:natberco:rwx /ho
setfacl -m u:sp35:x /home/yueyu
setfacl -m u:sp35:x /home/yueyu/scratch
setfacl -R -m u:sp35:rwx /home/yueyu/scratch/GBS_workshop
setfacl -m u:yushuang:x /home/yueyu
setfacl -m u:yushuang:x /home/yueyu/scratch
setfacl -R -m u:yushuang:rwx /home/yueyu/scratch/GBS_workshop
# ---- check if access is given
getfacl /home/yueyu
getfacl /home/yueyu/scratch
getfacl /home/yueyu/scratch/GBS_workshop
# ---- remove access
setfacl -x u:vfett /home/yueyu
setfacl -x u:vfett /home/yueyu/scratch
setfacl -x u:vfett /home/yueyu/scratch/GBS_workshop
# All access removed 20206 April 20
########################
# Notes for tutorial setup on Narval
# Jan 2025
#######################
# permissions
mkdir /home/celphin/scratch/GBS_workshop
cd /home/celphin/scratch/GBS_workshop
chmod -R 777 /home/celphin/scratch/GBS_workshop
# probably not needed
setfacl -m u:yueyu:rwx /home/celphin/scratch
setfacl -m u:combrink:rwx /home/celphin/scratch
setfacl -m u:kplin:rwx /home/celphin/scratch
setfacl -m u:jamaldin:rwx /home/celphin/scratch
setfacl -m u:gerlinca:rwx /home/celphin/scratch
setfacl -m u:kaedeh:rwx /home/celphin/scratch
setfacl -m u:godfla12:rwx /home/celphin/scratch
setfacl -m u:louislr:rwx /home/celphin/scratch
setfacl -m u:rafaubc:rwx /home/celphin/scratch
setfacl -m u:pawluk93:rwx /home/celphin/scratch
setfacl -m u:natberco:rwx /home/celphin/scratch
setfacl -m u:gopal:rwx /home/celphin/scratch
#------------------
getfacl /home/celphin/scratch
# file: home/celphin/scratch
# owner: celphin
# group: celphin
user::rwx
user:rafaubc:rwx
user:kaedeh:rwx
user:yueyu:rwx
user:kplin:rwx
user:combrink:rwx
user:louislr:rwx
user:jamaldin:rwx
user:natberco:rwx
user:gerlinca:rwx
user:pawluk93:rwx
user:godfla12:rwx
user:gopal:rwx
group::---
mask::rwx
other::---
# change permissions to read and execute only
chmod -R 755 /home/celphin/scratch/GBS_workshop
# after tutorial remove users
setfacl -x u:yueyu /home/celphin/scratch/GBS_workshop
#-----------------------
# Transfer relevant data over from Cedar via globus
# untar the files
tmux new-session -s GBS
tmux attach-session -t GBS
cd /home/celphin/scratch/GBS_workshop
tar -xvf Admixture_March2023.tar.gz
tar -xvf PopStats_Splitstree_March2023.tar.gz
tar -xvf SNP_filtering_March2023.tar.gz
tar -xvf Feb2023_dDocent.tar.gz