pinfinder icon indicating copy to clipboard operation
pinfinder copied to clipboard

"Full Disk Access" on a linux machine

Open beeaniebee opened this issue 5 years ago • 7 comments

I'm trying to run pinfinder on my ubuntu 19.04 machine and when I run the binary, its telling me I need "Full Disk Access" and I don't know how to satisfy it. I've tried running it with sudo, from root, and putting the backup folder into the pinfinder folder. I've also tried running previous versions of pinfinder that didn't use this feature and it tells me my backup folder is invalid. I don't know what to do. Help!

beeaniebee avatar Aug 13 '19 03:08 beeaniebee

You need to manually specify a backup location. Otherwise it looks for backups in the default directory, which is certainly not present on Ubuntu (without iTunes) and throws this error.

singularity-s0 avatar Aug 13 '19 04:08 singularity-s0

that sounds really odd; definitely a bug as the code is supposed to detect if it's running on Mac and only emit that particular message if it is; certainly not supposed to happen on Linux.

are you running it with the path to the backup directory suppplied?

ie. ./pinfinder ~/backup (or wherever your backup is stored)

I'll also try to take a look in the next day or two.

gwatts avatar Aug 13 '19 04:08 gwatts

I've found that by commenting out the contents of the exitBadMacPerms() method entirely in the pinfinder.go file of the source code, it then works perfectly on my Linux machine (Manjaro). However, instead of ~/backup, I needed to specify ~/backup/* in order to get it to work.

sjoldzic43 avatar Nov 12 '19 01:11 sjoldzic43

Basically, the exitBadMacPerms() of my pinfinder.go file looks like this now and it works:

func exitBadMacPerms() { //fmt.Fprintln(os.Stderr, "\nOperation not permitted: Full Disk Access Required") //fmt.Fprintln(os.Stderr, "Please grant \"Full Disk Access\" to Terminal to run pinfinder") //fmt.Fprintln(os.Stderr, "See https://pinfinder.net/mac.html for help") //os.Exit(130) }

sjoldzic43 avatar Nov 12 '19 01:11 sjoldzic43

Thanks @sjoldzic43 that's useful; i'll fix it properly for the next release

gwatts avatar Nov 12 '19 02:11 gwatts

Cool! Sounds great.

I can also do further tests to see if there is a more elegant solution and post here what I find but for now, bypassing the method entirely by commenting it out works.

Regards, -Stephan Joldzic

Sent from my iPhone

On Nov 11, 2019, at 9:43 PM, Gareth Watts [email protected] wrote:

Thanks @sjoldzic43 that's useful; i'll fix it properly for the next release

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

sjoldzic43 avatar Nov 12 '19 03:11 sjoldzic43

Im having the same problem in ubuntu 18.04 I cloned and compiled as indicated I gettting an error though Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work

lua-pele avatar Feb 10 '20 02:02 lua-pele