Score:0

Permission Denied ... can't browse and attach files to apps from 2nd drive

td flag

Hoping someone can help, I've browsed the internet endlessly and can't find a solution.

I have 2 internal hard drives, the 2nd which does not have Ubuntu installed, is registered as a "removable drive" (named "StorageX" by me). I have made sure is is automatically mounted, and it IS instantly accessible via file managers and certain apps.

However, the big problem is, with many other apps, such as email clients or project managers such as Zenkit, when I try attach a file from "StorageX", I get the error below:

Could not read the contents of StorageX

Error opening directory '/media/rob/StorageX': Permission denied

Sometimes system also crashes.

screenshot of error message

I have tried various terminal commands I came across while browsing the Internet to try gain ownership, such as sudo chmod -R a+rwx,o-w /media/rob/StorageX. I don't think ownership is the problem, because the files are accessible by other apps and file managers.

I have also tried using different versions of the same application straight from the Snapstore as well as Appimages. The same issue persists.

My system:

  • Operating System: Kubuntu 20.04
  • KDE Plasma Version: 5.18.5
  • KDE Frameworks Version: 5.68.0
  • Qt Version: 5.12.8
  • Kernel Version: 5.11.0-41-generic
  • OS Type: 64-bit
  • Processors: 8 × Intel® Core™ i7-2630QM CPU @ 2.00GHz
  • Memory: 7,7 GiB of RAM
in flag
Snaps are generally not permitted to access storage locations outside an account's home directory. Not sure if AppImage has this same limitation, though.
za flag
If you can read/write via your file manager without issues, then definitely the problem lies with your app. I can vouch for limitations with snap installs. Currently, I use a snap release for Libreoffice. LO will open/close files in the snap doc directory, but other drives are not shown. To access other drives, I must go to root, then mnt or media. Even then, the drives are not shown with alias labels, but rather the system labels. Not a user-friendly result.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.