I have a couple of snaps that cannot read files inside $HOME. I get errors like:
in my $home as root:
[bat error]: ‘test.txt’: Permission denied (os error 13)
grex --file test.txt
permission denied: the specified file could not be opened
Works when I’m not elevated:
$ batcat test.txt | wc -l
When I run these as root. When I run them as myself I can access the files and the applications work . What must I do so that sudo will be able to access the file?