ghidra-dark icon indicating copy to clipboard operation
ghidra-dark copied to clipboard

File permissions do not use --user flag

Open possibly-not opened this issue 3 years ago • 0 comments

Hi there! So I installed and uninstalled this by using specifying my user with the --user flag, however because I was running the installer with sudo the files created in the .ghidra/.ghidra_10.1.1_DEV/tools/ directory are owned by root, rather than the specified user. This means I get an error on launch of Ghidra.

Cannot find: ~/.ghidra/.ghidra_10.1.1_DEV/tools/_code_browser.tcd

This includes everything from ./tools/ and the ./permissions file. It's an easy fix on my part just to add permissions to these files. It's odd though that it only effected me when uninstalling.

I believe this may be because it takes a backup of the files to then restore, but that restore process uses the wrong permissions. This issue occurs on further installs/uninstalls. So I assume at some point these files lose their user permissions.

possibly-not avatar Feb 01 '22 20:02 possibly-not