Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Learn More

Ця тема перенесена в архів. Якщо вам потрібна допомога, запитайте.

Permission denied when opening file from another drive

  • 5 відповідей
  • 0 мають цю проблему
  • 1 перегляд
  • Остання відповідь від zeroknight

more options

When opening a file from another drive, I get an error: Access to the file was denied

I know this can happen on the Snap version, but I have Firefox installed from a deb!

When opening a file from another drive, I get an error: Access to the file was denied I know this can happen on the Snap version, but I have Firefox installed from a deb!

Обране рішення

Ubuntu has an apparmor profile for /usr/lib/firefox/firefox. You can add paths you want to be accessible to /etc/apparmor.d/tunables/home.

Читати цю відповідь у контексті 👍 0

Усі відповіді (5)

more options

Show the error message. I assume the drive is already mounted. Can you access the file via the file explorer in you OS? I'm curious to know what file you're trying to access via the internet browser instead of the normal file explorer? See what happens with Firefox from Mozilla. Just download, unzip, and run firefox-bin to see if you have the same issue. https://www.mozilla.org/en-US/firefox/all/#product-desktop-esr

more options

Yes, I can access the file with the file explorer. It also works fine when I open it with Firefox ESR from that link and the stable version of Firefox from that link. The permissions on the file look correct: -rw-rw-r--. Is there a way to tell whether Firefox was installed through snap from within Firefox itself? It seems to be installed through apt, but I know that some apt packages are secretly installed as snaps, which apparently can cause issues.

apt list --installed | grep firefox

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

firefox/jammy,now 119.0+build2-0ubuntu0.22.04.1~mt1 amd64 [installed,automatic]

more options

Вибране рішення

Ubuntu has an apparmor profile for /usr/lib/firefox/firefox. You can add paths you want to be accessible to /etc/apparmor.d/tunables/home.

more options

Thanks!

I don't want other apps to access this drive so I added /e/* r, to /etc/apparmor.d/usr.bin.firefox. My drive is mounted at /e. To anyone else using this answer, reload the apparmor profile with sudo service apparmor reload after making changes and see if it works

more options

Changing the apparmor profiles directly will conflict with updates, instead you should use a local override in /etc/apparmor.d/local/usr.bin.firefox.