Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

The GitHub setup page at https://help.github.com/articles/set-up-git has a section on password caching. It states to download the osxkeychain and copy it to /usr/local/bin. I downloaded the file, but get a permission denied error when I try to copy it to the directory specified. How can I get this file copied?

share|improve this question
    
Why the -1? I am asking why I get a permission denied error. –  John Jun 18 '12 at 18:38
    
no idea. Balanced it out –  houbysoft Jun 18 '12 at 18:54
add comment

1 Answer 1

up vote 3 down vote accepted

You will need to use sudo cp instead of just cp to copy a file to /usr/local/bin because /usr/* is only writable for root.

share|improve this answer
    
Thank you. I am a Mac/UNIX newbie, but trying to learn. –  John Jun 18 '12 at 19:00
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.