搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

Please explain why i can't read an html file with Firefox

  • 4 回覆
  • 1 有這個問題
  • 8 次檢視
  • 最近回覆由 Terry

more options

I installed Rust on my laptop and want to browse to the documentation which is installed at file:///home/lochlann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/doc/rust/html/intro.html. I try to open this in Firefox and this fails with the message: Access to the file was denied

The file at /home/lochlann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/doc/rust/html/intro.html is not readable.

   It may have been removed, moved, or file permissions may be preventing access.

I have read permissions on the file. No matter, it fails. I try to open the file using Firefox and navigate the directory structure rather than typing in the location. The file opens in the browser, the location is listed as file:///run/user/1000/doc/1f137432/index.html. Can you explain to me why Firefox cannot render a file that is where i put it and has appropriate permissions yet can render the same file where I did not put it? I have always been a fan but this looks more like a virus than I am comfortable with.

I installed Rust on my laptop and want to browse to the documentation which is installed at file:///home/lochlann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/doc/rust/html/intro.html. I try to open this in Firefox and this fails with the message: Access to the file was denied The file at /home/lochlann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/doc/rust/html/intro.html is not readable. It may have been removed, moved, or file permissions may be preventing access. I have read permissions on the file. No matter, it fails. I try to open the file using Firefox and navigate the directory structure rather than typing in the location. The file opens in the browser, the location is listed as file:///run/user/1000/doc/1f137432/index.html. Can you explain to me why Firefox cannot render a file that is where i put it and has appropriate permissions yet can render the same file where I did not put it? I have always been a fan but this looks more like a virus than I am comfortable with.

所有回覆 (4)

more options

Access denied sounds like a permissions issue. Is your error similar to this? see screenshot

由 jonzn4SUSE 於 修改

more options

Thank you It does sound like permissions. I took a screen shot showing the name of the file, the browser response and the output of ls -l for that file, showing permissions. No worries, I will just reinstall. Still a little puzzled by the alternate route to the file rendering as described above, but it isn't blocking anything

more options

May be try to open a terminal with superuser login and then type rustup docs --book

由 kavinprabath508 於 修改

more options

Are you using Ubuntu? I have seen similar reports from users of Ubuntu.