Skip to content

Commit 581d5e6

Browse files
authored
back up and restore file permissions
1 parent af9eef0 commit 581d5e6

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,22 @@ These above reasons and resolution can be mapped on other issues like can't exec
334334
</details>
335335

336336

337+
<details>
338+
<summary>How to back up and restore file permissions on Linux</summary>
339+
<!--All you need is a blank line-->
340+
341+
.
342+
├── Troubleshooting
343+
│ ├── The best option is to create the ACL file of Dir/Files before changing the permissions in bulk
344+
│ │ ├── Create the acl file before changing the permission (or backup the file permission): ~$ getfacl -R <dir> > permissions.acl
345+
│ │ ├── Restore File Permissions: ~$ setfacl --restore=permissions.acl
346+
│ ├── Restore from the VM Snapshot (But not always a good option for production)
347+
│ ├── Rebuild the VM (this option is safe for future)
348+
└── ...
349+
350+
</details>
351+
352+
337353
<details>
338354
<summary>HTTP error 403: forbidden yum occurs when we try to install a package using yum</summary>
339355
<i>The HTTP 403 Forbidden response status code indicates that the server understands the request but refuses to authorize it. The access is permanently forbidden and tied to the application logic, such as insufficient rights to a resource. [Ref](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403 , https://bobcares.com/blog/http-error-403-forbidden-yum/)</i>

0 commit comments

Comments
 (0)