Permission denied. 2nd Edition page 333

HI guys, I’m getting permission denied message when I’m running from the command-line.

$ mkdir -p /usr/local/bin

I’m the only user on my mac so I don’t know what’s going on.

Your mac is trying to protect you from yourself because ordinary users are not allowed to modify usr/local/bin.

You need to be superuser to do that. Check out the sudo command.

Does the Superuser get a Superuser Shirt! :laughing:
Thanks for that!

You have given me plenty of material.

Just add the command sudo before the command your are trying to run. It will ask you for your password and after you enter the correct password your command should get executed

sudo mkdir -p /usr/local/bin