File permissions with Mat2

Hi friends, I find problems with MAT2, when I try to give the command: $mat 2 -s

I can not see the meta tags of the file, I see a permissions error:

root@host:/home/user/Downloads# mat2 -s prince-wedding-2-640x640.jpg
bwrap: Can’t find source path /home/user/Downloads: Permission denied
Traceback (most recent call last):
File “/usr/bin/mat2”, line 186, in
sys.exit(main())
File “/usr/bin/mat2”, line 170, in main
show_meta(f)
File “/usr/bin/mat2”, line 72, in show_meta
__print_meta(filename, p.get_meta())
File “/usr/lib/python3/dist-packages/libmat2/exiftool.py”, line 23, in get_meta
check=True, stdout=subprocess.PIPE).stdout
File “/usr/lib/python3/dist-packages/libmat2/subprocess.py”, line 100, in run
completed_process = subprocess.run(prefix_args + args, **kwargs)
File “/usr/lib/python3.7/subprocess.py”, line 487, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command ‘[’/usr/bin/bwrap’, ‘–ro-bind’, ‘/usr’, ‘/usr’, ‘–ro-bind’, ‘/lib’, ‘/lib’, ‘–ro-bind’, ‘/lib64’, ‘/lib64’, ‘–ro-bind’, ‘/bin’, ‘/bin’, ‘–ro-bind’, ‘/sbin’, ‘/sbin’, ‘–ro-bind’, ‘/home/user/Downloads’, ‘/home/user/Downloads’, ‘–ro-bind’, ‘/etc/ld.so.cache’, ‘/etc/ld.so.cache’, ‘–dev’, ‘/dev’, ‘–chdir’, ‘/home/user/Downloads’, ‘–unshare-all’, ‘–new-session’, ‘–ro-bind’, ‘/home/user/Downloads/prince-wedding-2-640x640.jpg’, ‘/home/user/Downloads/prince-wedding-2-640x640.jpg’, ‘/usr/bin/exiftool’, ‘-json’, ‘prince-wedding-2-640x640.jpg’]’ returned non-zero exit status 1.
root@host:/home/user/Downloads#

Blockquote

Issue → Inappropriate Use of Root Rights. Use user user instead.

Perhaps Permissions Fix required.

Ok, I gave the following command:

sudo chown --recursive user:user /home/user

After I tried again to view the contents of the file .jpg :slight_smile:

user@host:~/Downloads$ mat2 -s prince.jpg
bwrap: setting up uid map: No such file or directory

this is the path to the file

/home/user/Downloads/prince.jpg

Works for me in Whonix 16.0.3.1 (released just now).

mat2 -s /usr/share/backgrounds/xfce/xfce-blue.jpg

No metadata found in /usr/share/backgrounds/xfce/xfce-blue.jpg.

I don’t understand what’s wrong with the command I gave?

user@host:~$ mat2 -s /home/user/Downloads/prince.jpg
bwrap: setting up uid map: No such file or directory

user@host:~$ mat2 -s /usr/share/backgrounds/xfce/xfce-blue.jpg
bwrap: setting up uid map: No such file or directory

Try Whonix 16.0.3.1 or upgrade.

1 Like

I have already made :

sudo apt update + sudo apt dist-upgrade

there are no updates

you were right, I upgraded replacing the gateway and workstation consoles and now the mat2 commands work.

Thanks Patrick

user@host:~$ mat2 -s /usr/share/backgrounds/xfce/xfce-blue.jpg
No metadata found in /usr/share/backgrounds/xfce/xfce-blue.jpg.
user@host:~$