# Can't see the content of some catalogs in TBrowser

**URL:** <https://root-forum.cern.ch/t/cant-see-the-content-of-some-catalogs-in-tbrowser/61771>\
**Category:** Newbie\
**Created:** [September 24, 2024, 1:08pm UTC](https://root-forum.cern.ch/t/cant-see-the-content-of-some-catalogs-in-tbrowser/61771 "2024-09-24T13:08:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpietrzak](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/a587f6/32.png) [@mpietrzak](https://root-forum.cern.ch/u/mpietrzak)\
**Post date:** [September 24, 2024, 1:08pm UTC](https://root-forum.cern.ch/t/cant-see-the-content-of-some-catalogs-in-tbrowser/61771/1 "2024-09-24T13:08:40Z")

</div>

Hello,

I have the problem as described in the topic. While browsing the catalog tree using TBrowser I can see the content of some catalogs, but not the others. It’s not even about the \*.root files but the content in general. I can see no files or sub-catalogs in some catalogs that I know are not empty. I have all the rights to open, read, and modify the content. This behavior confuses me a lot.

Does anyone have any idea what is the reason?

Root version from the Snap store.  
_ROOT Version:_ 6.30/04  
_Platform:_ Linux Mint 21.3  
_Compiler:_ linuxx8664gcc on Feb 03 2024, 23:12:12  
From tags/v6-30-04@v6-30-04  
With c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [September 24, 2024, 1:10pm UTC](https://root-forum.cern.ch/t/cant-see-the-content-of-some-catalogs-in-tbrowser/61771/2 "2024-09-24T13:10:21Z")

</div>

Hi Marcin,

Thanks for this post and welcome to the ROOT Community!

It’s hard to formulate hypotheses with the information currently at disposal. Could you please share one of your files?

Best,  
Danilo

---

<div class="post-metadata">

**Author:** ![mpietrzak](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/a587f6/32.png) [@mpietrzak](https://root-forum.cern.ch/u/mpietrzak)\
**Post date:** [September 24, 2024, 2:26pm UTC](https://root-forum.cern.ch/t/cant-see-the-content-of-some-catalogs-in-tbrowser/61771/3 "2024-09-24T14:26:16Z")

</div>

After some digging, I have found the reason. It’s because I use the root from the Snap Store, which is confined and so it has access only to my home directory, but not to other partitions mounted in “/media”.  
**The solution is:**

_sudo snap connect root-framework:removable-media_

Whoever is creating the Snap version of the root-framework might be interested in adding “removable-media” as the default interface beside the “home” interface.

More on my issue (which is more general) can be found on “askubuntu” under question “[snap-application-doesnt-see-files-from-another partition](https://askubuntu.com/questions/964377/snap-application-doesnt-see-files-from-another-partition)”

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [September 25, 2024, 6:51am UTC](https://root-forum.cern.ch/t/cant-see-the-content-of-some-catalogs-in-tbrowser/61771/4 "2024-09-25T06:51:52Z")

</div>

Thanks for sharing the solution with the ROOT Community!

---

<div class="post-metadata">

**Author:** ![James-Carroll](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/james-carroll/32/27108_2.png) [@James-Carroll](https://root-forum.cern.ch/u/James-Carroll)\
**Post date:** [September 25, 2024, 1:21pm UTC](https://root-forum.cern.ch/t/cant-see-the-content-of-some-catalogs-in-tbrowser/61771/5 "2024-09-25T13:21:33Z")

</div>

> [@mpietrzak](#):
>
> Whoever is creating the Snap version of the root-framework might be interested in adding “removable-media” as the default interface beside the “home” interface.

The reason this isn’t done by default (in line with general Snap policies) is that `$HOME` has a default level of protection, top level hidden folders like `~/.SSH` for example are blocked even when access to e.g Documents isn’t.

Media doesn’t have this same protection. If a folder is mounted under `/media` and the permission is given to grant it, the entire drive is accessible. For cases like ourselves that makes sense a lot of the time as being in HPC and educational contexts, shared drives are common and will usually still have UNIX permissions applied.

In a broader context though, `/media` could be an entire operating system like Windows which might not have UNIX permissions and effectively becomes fair game for any user to access, including all secrets and other content that might be considered high sensitivity.

So while the permission can be activated automatically, I’d have to convince the Snap Store admins to do so, and I don’t expect they would agree given the audience.

The sandboxing is probably overkill generally but still nice to have in principal, for example, when the RCE with the Root 7 TBrowser was discovered, users of the Snap would have had mitigation, including e.g., people who don’t have `removable-media` connected would be cut off from direct network access to shared drives on a network, which is a very nice claim to be able to make (even if one you’d rather not be able to brag about).

That said, this might become less of an issue in the future since more dynamic permissions for Snaps are absolutely a work in progress (generally, not just ROOT), such as:

 ![prompting-dialogs-1](https://root-forum.cern.ch/uploads/default/original/3X/9/d/9d75b014de3a98114253840af8f0a567b7817e64.jpeg)  
([Ubuntu Prompting Client is Here to Make Snap Apps Safer - OMG! Ubuntu](https://www.omgubuntu.co.uk/2024/09/prompting-client-snaps-ubuntu)).
