raspberry pi folder permission [SOLVED]
-
hello.
i just bought a raspberry pi and im using it for the first time.
i use the monocle instructions
https://monoclecam.com/monocle-gateway/install/linux-script-install?os=linux&arch=arm&target=raspberrypi&file=monocle-gateway-linux-raspi-v0.0.4and i am stuck in point 3. coping the gateway token. to etc/monocle. the error i am getting is that i dont have permission to create or write a file in to this directory.
can anyone help me how to change the permission to that folder.
im are really new to linux and raspberry so sorry for the dumb question.thanks.
-
You have to prefix the command you are using with
sudo
to gain administrative privileges.To create the directory:
sudo mkdir /etc/monocle
If you are copying the token file to the correct directory from your home directory:
sudo cp ~/monocle.token /etc/monocle/monocle.token
Thanks, Robert