mac-os-self-destruct icon indicating copy to clipboard operation
mac-os-self-destruct copied to clipboard

Can't Install, Permission Denied

Open gkrizek opened this issue 9 years ago • 7 comments

Can't install because I get a Permission Denied error. It returns:

Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights

Running OS X 10.10 (Yosemite Beta), that could be an issue.

gkrizek avatar Sep 28 '14 18:09 gkrizek

@gkrizek I've tested it on 10.10 (I'm running it) and it works fine.

Could you give it another try?

If that doesn't work, try cloning over HTTPS:

git clone https://github.com/tdlm/os-x-self-destruct.git

Let me know if that works.

tdlm avatar Sep 28 '14 23:09 tdlm

Cloning over HTTPS did work for cloning the actual file. Now experiencing a problem installing. This is exactly what it returns after running the install line: AppleUser-MacBook-Pro-2:os-x-self-destruct AppleUser$ cd os-x-self-destruct && ./self-destruct.sh --install Copying self to /Users/AppleUser/bin/self-destruct.sh cp: /Users/AppleUser/bin/self-destruct.sh: No such file or directory chmod: /Users/AppleUser/bin/self-destruct.sh: No such file or directory Plist found. Unloading before install... Generating plist for user and installing: /Users/AppleUser/Library/LaunchAgents/com.github.tdlm.os-x-self-destruct.plist Installation complete

gkrizek avatar Sep 29 '14 00:09 gkrizek

Sounds like your user lacks a ~/bin/ directory. Can you verify that?

$ ls -lh ~/bin/

If that's missing, you'll probably have to create it and try the install script again. In fact, I'd try running the uninstall and then the install.

tdlm avatar Sep 29 '14 05:09 tdlm

Assuming that works, I'll just add it to the script.

tdlm avatar Sep 29 '14 05:09 tdlm

Alright, I had no Bin folder and then I created one. Now experiencing a new error. It's actually the same thing @satan87 is getting in his issue. When I try to run the install line I get back:

Copying self to /usr/local/bin/self-destruct cp: /usr/local/bin/self-destruct: Permission denied chmod: /usr/local/bin/self-destruct: No such file or directory Plist found. Unloading before install... Generating plist for user and installing: /Users/AppleUser/Library/LaunchAgents/com.github.tdlm.os-x-self-destruct.plist Installation complete!

gkrizek avatar Oct 02 '14 19:10 gkrizek

@gkrizek Agh, I may have to detect which bin the user actually has before trying to copy the file there. I think that makes more sense than trying to copy it to some "default" location. Thanks for the feedback and for your patience.

tdlm avatar Oct 02 '14 21:10 tdlm

@gkrizek Please try the installation again as I have made some updates to the script. I'd appreciate your feedback.

tdlm avatar Dec 06 '16 04:12 tdlm