Skip to content
This repository has been archived by the owner on Nov 9, 2024. It is now read-only.

"Full Disk Access" on a linux machine #86

Open
beeaniebee opened this issue Aug 13, 2019 · 7 comments
Open

"Full Disk Access" on a linux machine #86

beeaniebee opened this issue Aug 13, 2019 · 7 comments
Labels

Comments

@beeaniebee
Copy link

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!

@singularity-s0
Copy link

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.

@gwatts
Copy link
Owner

gwatts commented Aug 13, 2019

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 gwatts added the bug label Aug 13, 2019
@sjoldzic43
Copy link

sjoldzic43 commented Nov 12, 2019

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
Copy link

sjoldzic43 commented Nov 12, 2019

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)
}

@gwatts
Copy link
Owner

gwatts commented Nov 12, 2019

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

@sjoldzic43
Copy link

sjoldzic43 commented Nov 12, 2019 via email

@lua-pele
Copy link

lua-pele commented Feb 10, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants