Accessing and adding files to /usr/bin

N

nealkochhar

Guest
When I try copying some files into /usr/bin, it says "Permission Denied". I've tried repairing my permissions, setting a master password, but it still says the same thing.

How do I go about overriding the password? Or just copying the files I want to copy (from my Home folder) to /usr/bin? For reference, I am the admin user of my computer.

Thanks in advance,

-Neal.
 

rman


Retired Staff
Joined
Dec 24, 2002
Messages
12,637
Reaction score
168
Points
63
Location
Los Angeles, California
Your Mac's Specs
14in MacBook Pro M1 Max 32GB 2TB
You will need to use the terminal window and the sudo command.

Some thing on the lines of: sudo cp file_to_be_place_in_bin /usr/bin.

You will be prompted for a pass word and then the copy should be made. You will need to change the file permissions also. Something on the lines of 755, (rwxr-xr-x):

sudo chmod 755 /usr/bin/file_to_be_place_in_bin
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top