I've been trying to edit my opt\vc file and encountered some problems:

here is what i've done:

pi@raspberrypi:/opt/vc $ mkdir NEW
mkdir: cannot create directory ‘NEW’: Permission denied

i'm pretty new at this so i don't really know what to do. can anyone help?


3 Answers 3


It's an ownership problem. /opt/vc will be owned by a different user (probably 'root'). Try:

sudo mkdir NEW

Like recantha said, sudo mkdir will work. But if you want to to more things at once which require root-access the you can type sudo -s, which will change you to root-user. But then be careful, you are allowed to do everything which means you can destroy alot.


This has helped me with the permission denied dialog: Whatever command you are using, navigate to it using the File Manager and access it's properties dialog. You should see two tabs at the top of the properties dialog, and one is labeled PERMISSIONS. Select the PERMISSIONS tab and make sure that the 1st and 3rd selections are set to ANYONE. That did it for me.

  • 1
    This is not the right way to deal with this. Your method may work but it can also create a large security vulnerability, using sudo is a much better option. Apr 1, 2018 at 3:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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