Cannot open an HTML file stored on RAM-disk with a browser
7
votes
1
answer
1169
views
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
?
Asked by Pietro
(663 rep)
Aug 30, 2024, 10:21 AM
Last activity: Sep 3, 2024, 10:03 PM
Last activity: Sep 3, 2024, 10:03 PM