-
Notifications
You must be signed in to change notification settings - Fork 16
/
fixperms.bat
263 lines (259 loc) · 12.2 KB
/
fixperms.bat
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
echo "Trying old style first..."
set user="NT AUTHORITY\NETWORK"
cacls data_custom\modules\chat /e /g %user%:F
cacls data_custom\modules\admin_backup /e /g %user%:F
cacls data_custom\spelling\output.log /e /g %user%:F
cacls data_custom\spelling\write.log /e /g %user%:F
cacls data_custom\spelling\personal_dicts /e /g %user%:F
cacls themes /e /g %user%:F
cacls text_custom\*.txt /e /g %user%:F
cacls text_custom\EN\*.txt /e /g %user%:F
cacls persistant_cache /e /g %user%:F
cacls persistant_cache\* /e /g %user%:F
cacls safe_mode_temp /e /g %user%:F
cacls safe_mode_temp\* /e /g %user%:F
cacls lang_cached /e /g %user%:F
cacls lang_cached\* /e /g %user%:F
cacls lang_custom /e /g %user%:F
cacls lang_custom\* /e /g %user%:F
cacls lang_custom\EN\* /e /g %user%:F
cacls themes\map.ini /e /g %user%:F
cacls themes\default /e /g %user%:F
cacls themes\default\css_custom /e /g %user%:F
cacls themes\default\css_custom\* /e /g %user%:F
cacls themes\default\images_custom /e /g %user%:F
cacls themes\default\images_custom\* /e /g %user%:F
cacls themes\default\templates_custom /e /g %user%:F
cacls themes\default\templates_custom\* /e /g %user%:F
cacls themes\default\theme.ini /e /g %user%:F
cacls themes\default\templates_cached /e /g %user%:F
cacls themes\default\templates_cached\* /e /g %user%:F
cacls data_custom\fields.xml /e /g %user%:F
cacls data_custom\errorlog.php /e /g %user%:F
cacls data_custom\ocp_sitemap.xml /e /g %user%:F
cacls data_custom\modules\admin_stats /e /g %user%:F
cacls imports\* /e /g %user%:F
cacls imports\mods\* /e /g %user%:F
cacls exports\* /e /g %user%:F
cacls exports\backups\* /e /g %user%:F
cacls exports\file_backups\* /e /g %user%:F
cacls exports\mods\* /e /g %user%:F
cacls uploads\* /e /g %user%:F
cacls uploads\banners\* /e /g %user%:F
cacls uploads\catalogues\* /e /g %user%:F
cacls uploads\downloads\* /e /g %user%:F
cacls uploads\filedump\* /e /g %user%:F
cacls uploads\galleries\* /e /g %user%:F
cacls uploads\galleries_thumbs\* /e /g %user%:F
cacls uploads\iotds\* /e /g %user%:F
cacls uploads\iotds_thumbs\* /e /g %user%:F
cacls uploads\attachments\* /e /g %user%:F
cacls uploads\attachments_thumbs\* /e /g %user%:F
cacls uploads\auto_thumbs\* /e /g %user%:F
cacls uploads\ocf_photos\* /e /g %user%:F
cacls uploads\ocf_photos_thumbs\* /e /g %user%:F
cacls uploads\ocf_avatars\* /e /g %user%:F
cacls uploads\ocf_cpf_upload\* /e /g %user%:F
cacls uploads\grepimages\* /e /g %user%:F
cacls uploads\watermarks\* /e /g %user%:F
cacls pages\comcode_custom /e /g %user%:F
cacls pages\comcode_custom\* /e /g %user%:F
cacls pages\comcode_custom\EN\* /e /g %user%:F
cacls forum\pages\comcode_custom /e /g %user%:F
cacls forum\pages\comcode_custom\* /e /g %user%:F
cacls forum\pages\comcode_custom\EN\* /e /g %user%:F
cacls cms\pages\comcode_custom /e /g %user%:F
cacls cms\pages\comcode_custom\* /e /g %user%:F
cacls cms\pages\comcode_custom\EN\* /e /g %user%:F
cacls docs\pages\comcode_custom /e /g %user%:F
cacls docs\pages\comcode_custom\* /e /g %user%:F
cacls docs\pages\comcode_custom\EN\* /e /g %user%:F
cacls site\pages\comcode_custom /e /g %user%:F
cacls site\pages\comcode_custom\* /e /g %user%:F
cacls site\pages\comcode_custom\EN\* /e /g %user%:F
cacls adminzone\pages\comcode_custom /e /g %user%:F
cacls adminzone\pages\comcode_custom\* /e /g %user%:F
cacls adminzone\pages\comcode_custom\EN\* /e /g %user%:F
cacls collaboration\pages\comcode_custom /e /g %user%:F
cacls collaboration\pages\comcode_custom\* /e /g %user%:F
cacls collaboration\pages\comcode_custom\EN\* /e /g %user%:F
cacls info.php /e /g %user%:F
cacls pages\html_custom /e /g %user%:F
cacls pages\html_custom\* /e /g %user%:F
cacls pages\html_custom\EN\* /e /g %user%:F
cacls forum\pages\html_custom /e /g %user%:F
cacls forum\pages\html_custom\* /e /g %user%:F
cacls forum\pages\html_custom\EN\* /e /g %user%:F
cacls cms\pages\html_custom /e /g %user%:F
cacls cms\pages\html_custom\* /e /g %user%:F
cacls cms\pages\html_custom\EN\* /e /g %user%:F
cacls docs\pages\html_custom /e /g %user%:F
cacls docs\pages\html_custom\* /e /g %user%:F
cacls docs\pages\html_custom\EN\* /e /g %user%:F
cacls site\pages\html_custom /e /g %user%:F
cacls site\pages\html_custom\* /e /g %user%:F
cacls site\pages\html_custom\EN\* /e /g %user%:F
cacls adminzone\pages\html_custom /e /g %user%:F
cacls adminzone\pages\html_custom\* /e /g %user%:F
cacls adminzone\pages\html_custom\EN\* /e /g %user%:F
cacls collaboration\pages\html_custom /e /g %user%:F
cacls collaboration\pages\html_custom\* /e /g %user%:F
cacls collaboration\pages\html_custom\EN\* /e /g %user%:F
cacls pages\modules_custom /e /g %user%:F
cacls pages\modules_custom\* /e /g %user%:F
cacls forum\pages\modules_custom /e /g %user%:F
cacls forum\pages\modules_custom\* /e /g %user%:F
cacls cms\pages\modules_custom /e /g %user%:F
cacls cms\pages\modules_custom\* /e /g %user%:F
cacls docs\pages\modules_custom /e /g %user%:F
cacls docs\pages\modules_custom\* /e /g %user%:F
cacls site\pages\modules_custom /e /g %user%:F
cacls site\pages\modules_custom\* /e /g %user%:F
cacls adminzone\pages\modules_custom /e /g %user%:F
cacls adminzone\pages\modules_custom\* /e /g %user%:F
cacls collaboration\pages\modules_custom /e /g %user%:F
cacls collaboration\pages\modules_custom\* /e /g %user%:F
cacls pages\minimodules_custom /e /g %user%:F
cacls pages\minimodules_custom\* /e /g %user%:F
cacls forum\pages\minimodules_custom /e /g %user%:F
cacls forum\pages\minimodules_custom\* /e /g %user%:F
cacls cms\pages\minimodules_custom /e /g %user%:F
cacls cms\pages\minimodules_custom\* /e /g %user%:F
cacls docs\pages\minimodules_custom /e /g %user%:F
cacls docs\pages\minimodules_custom\* /e /g %user%:F
cacls site\pages\minimodules_custom /e /g %user%:F
cacls site\pages\minimodules_custom\* /e /g %user%:F
cacls adminzone\pages\minimodules_custom /e /g %user%:F
cacls adminzone\pages\minimodules_custom\* /e /g %user%:F
cacls collaboration\pages\minimodules_custom /e /g %user%:F
cacls collaboration\pages\minimodules_custom\* /e /g %user%:F
echo "Trying new style..."
set user="IUSR"
icacls data_custom\modules\admin_backup /grant %user%:(M)
icacls data_custom\modules\chat /grant %user%:(M)
icacls data_custom\spelling\output.log /grant %user%:(M)
icacls data_custom\spelling\write.log /grant %user%:(M)
icacls data_custom\spelling\personal_dicts /grant %user%:(M)
icacls themes /grant %user%:(M)
icacls text_custom\*.txt /grant %user%:(M)
icacls text_custom\EN\*.txt /grant %user%:(M)
icacls persistant_cache /grant %user%:(M)
icacls persistant_cache\* /grant %user%:(M)
icacls safe_mode_temp /grant %user%:(M)
icacls safe_mode_temp\* /grant %user%:(M)
icacls lang_cached /grant %user%:(M)
icacls lang_cached\* /grant %user%:(M)
icacls lang_custom /grant %user%:(M)
icacls lang_custom\* /grant %user%:(M)
icacls lang_custom\EN\* /grant %user%:(M)
icacls themes\map.ini /grant %user%:(M)
icacls themes\default /grant %user%:(M)
icacls themes\default\css_custom /grant %user%:(M)
icacls themes\default\css_custom\* /grant %user%:(M)
icacls themes\default\images_custom /grant %user%:(M)
icacls themes\default\images_custom\* /grant %user%:(M)
icacls themes\default\templates_custom /grant %user%:(M)
icacls themes\default\templates_custom\* /grant %user%:(M)
icacls themes\default\theme.ini /grant %user%:(M)
icacls themes\default\templates_cached /grant %user%:(M)
icacls themes\default\templates_cached\* /grant %user%:(M)
icacls data_custom\fields.xml /grant %user%:(M)
icacls data_custom\breadcrumbs.xml /grant %user%:(M)
icacls data_custom\errorlog.php /grant %user%:(M)
icacls ocp_sitemap.xml /grant %user%:(M)
icacls data_custom\modules\admin_stats /grant %user%:(M)
icacls imports\* /grant %user%:(M)
icacls imports\mods\* /grant %user%:(M)
icacls exports\* /grant %user%:(M)
icacls exports\backups\* /grant %user%:(M)
icacls exports\file_backups\* /grant %user%:(M)
icacls exports\mods\* /grant %user%:(M)
icacls uploads\* /grant %user%:(M)
icacls uploads\banners\* /grant %user%:(M)
icacls uploads\catalogues\* /grant %user%:(M)
icacls uploads\downloads\* /grant %user%:(M)
icacls uploads\filedump\* /grant %user%:(M)
icacls uploads\galleries\* /grant %user%:(M)
icacls uploads\galleries_thumbs\* /grant %user%:(M)
icacls uploads\iotds\* /grant %user%:(M)
icacls uploads\iotds_thumbs\* /grant %user%:(M)
icacls uploads\attachments\* /grant %user%:(M)
icacls uploads\attachments_thumbs\* /grant %user%:(M)
icacls uploads\auto_thumbs\* /grant %user%:(M)
icacls uploads\ocf_photos\* /grant %user%:(M)
icacls uploads\ocf_photos_thumbs\* /grant %user%:(M)
icacls uploads\ocf_avatars\* /grant %user%:(M)
icacls uploads\ocf_cpf_upload\* /grant %user%:(M)
icacls uploads\grepimages\* /grant %user%:(M)
icacls uploads\watermarks\* /grant %user%:(M)
icacls pages\comcode_custom /grant %user%:(M)
icacls pages\comcode_custom\* /grant %user%:(M)
icacls pages\comcode_custom\EN\* /grant %user%:(M)
icacls forum\pages\comcode_custom /grant %user%:(M)
icacls forum\pages\comcode_custom\* /grant %user%:(M)
icacls forum\pages\comcode_custom\EN\* /grant %user%:(M)
icacls cms\pages\comcode_custom /grant %user%:(M)
icacls cms\pages\comcode_custom\* /grant %user%:(M)
icacls cms\pages\comcode_custom\EN\* /grant %user%:(M)
icacls docs\pages\comcode_custom /grant %user%:(M)
icacls docs\pages\comcode_custom\* /grant %user%:(M)
icacls docs\pages\comcode_custom\EN\* /grant %user%:(M)
icacls site\pages\comcode_custom /grant %user%:(M)
icacls site\pages\comcode_custom\* /grant %user%:(M)
icacls site\pages\comcode_custom\EN\* /grant %user%:(M)
icacls adminzone\pages\comcode_custom /grant %user%:(M)
icacls adminzone\pages\comcode_custom\* /grant %user%:(M)
icacls adminzone\pages\comcode_custom\EN\* /grant %user%:(M)
icacls collaboration\pages\comcode_custom /grant %user%:(M)
icacls collaboration\pages\comcode_custom\* /grant %user%:(M)
icacls collaboration\pages\comcode_custom\EN\* /grant %user%:(M)
icacls info.php /grant %user%:(M)
icacls pages\html_custom /grant %user%:(M)
icacls pages\html_custom\* /grant %user%:(M)
icacls pages\html_custom\EN\* /grant %user%:(M)
icacls forum\pages\html_custom /grant %user%:(M)
icacls forum\pages\html_custom\* /grant %user%:(M)
icacls forum\pages\html_custom\EN\* /grant %user%:(M)
icacls cms\pages\html_custom /grant %user%:(M)
icacls cms\pages\html_custom\* /grant %user%:(M)
icacls cms\pages\html_custom\EN\* /grant %user%:(M)
icacls docs\pages\html_custom /grant %user%:(M)
icacls docs\pages\html_custom\* /grant %user%:(M)
icacls docs\pages\html_custom\EN\* /grant %user%:(M)
icacls site\pages\html_custom /grant %user%:(M)
icacls site\pages\html_custom\* /grant %user%:(M)
icacls site\pages\html_custom\EN\* /grant %user%:(M)
icacls adminzone\pages\html_custom /grant %user%:(M)
icacls adminzone\pages\html_custom\* /grant %user%:(M)
icacls adminzone\pages\html_custom\EN\* /grant %user%:(M)
icacls collaboration\pages\html_custom /grant %user%:(M)
icacls collaboration\pages\html_custom\* /grant %user%:(M)
icacls collaboration\pages\html_custom\EN\* /grant %user%:(M)
icacls pages\modules_custom /grant %user%:(M)
icacls pages\modules_custom\* /grant %user%:(M)
icacls forum\pages\modules_custom /grant %user%:(M)
icacls forum\pages\modules_custom\* /grant %user%:(M)
icacls cms\pages\modules_custom /grant %user%:(M)
icacls cms\pages\modules_custom\* /grant %user%:(M)
icacls docs\pages\modules_custom /grant %user%:(M)
icacls docs\pages\modules_custom\* /grant %user%:(M)
icacls site\pages\modules_custom /grant %user%:(M)
icacls site\pages\modules_custom\* /grant %user%:(M)
icacls adminzone\pages\modules_custom /grant %user%:(M)
icacls adminzone\pages\modules_custom\* /grant %user%:(M)
icacls collaboration\pages\modules_custom /grant %user%:(M)
icacls collaboration\pages\modules_custom\* /grant %user%:(M)
icacls pages\minimodules_custom /grant %user%:(M)
icacls pages\minimodules_custom\* /grant %user%:(M)
icacls forum\pages\minimodules_custom /grant %user%:(M)
icacls forum\pages\minimodules_custom\* /grant %user%:(M)
icacls cms\pages\minimodules_custom /grant %user%:(M)
icacls cms\pages\minimodules_custom\* /grant %user%:(M)
icacls docs\pages\minimodules_custom /grant %user%:(M)
icacls docs\pages\minimodules_custom\* /grant %user%:(M)
icacls site\pages\minimodules_custom /grant %user%:(M)
icacls site\pages\minimodules_custom\* /grant %user%:(M)
icacls adminzone\pages\minimodules_custom /grant %user%:(M)
icacls adminzone\pages\minimodules_custom\* /grant %user%:(M)
icacls collaboration\pages\minimodules_custom /grant %user%:(M)
icacls collaboration\pages\minimodules_custom\* /grant %user%:(M)