I wrote a script that generates a PDF and an HTML file on RAM-disk:
- The PDF file can be opened as expected.
- The HTML file can be opened with an editor, but not with a browser.
This is the error message I get from the browser (Chrome, Firefox) on Ubuntu Linux 24.04:
Access to the file was denied
The file at file:///dev/shm/test.html is not readable. It may have been removed, moved or file permissions may be preventing access.
ERR_ACCESS_DENIED
These are the file details:
/dev/shm> ll
-rw-rw-r-- 1 11K 2024-08-30 11:06 test.html
If I copy the file to the hard disk, it can be opened as expected:
/dev/shm> cp ./test.html ~
If I build Chromium from source as explained here, will I be able to open files stored on RAM-disk like /dev/shm?
/dev/shm? And what OS are you using?ls -l? It usually includes the owner and group.