Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't Install, Permission Denied #7

Open
gkrizek opened this issue Sep 28, 2014 · 7 comments
Open

Can't Install, Permission Denied #7

gkrizek opened this issue Sep 28, 2014 · 7 comments

Comments

@gkrizek
Copy link

gkrizek commented Sep 28, 2014

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.

@tdlm
Copy link
Owner

tdlm commented Sep 28, 2014

@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.

@gkrizek
Copy link
Author

gkrizek commented Sep 29, 2014

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

@tdlm
Copy link
Owner

tdlm commented Sep 29, 2014

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

tdlm commented Sep 29, 2014

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

@gkrizek
Copy link
Author

gkrizek commented Oct 2, 2014

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!

@tdlm
Copy link
Owner

tdlm commented Oct 2, 2014

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

tdlm commented Dec 6, 2016

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

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

No branches or pull requests

2 participants