mkdir permission denied vagrant

1

I'm using windows 10 and vagrant. When I access vagrant ssh I want to create a folder within Code, which is where all my projects are.

Now, I want to create a folder inside Code and I get the error:

  

[ErrorException] mkdir (): permission denied.

I also gave him 777 permissions but I still can not create the folder.

    
asked by Juan Pablo B 31.08.2016 в 16:17
source

2 answers

2

It's sudo mkdir carpeta , or logeate as root sudo su and then mkdir carpeta . Do not forget to leave the root user later, simply with the command exit .

    
answered by 22.10.2016 / 18:21
source
0

Verify who that directory is by giving it

ls -l

and if it's root then you have to create them with

sudo mkdir nombrecarpeta
    
answered by 22.09.2016 в 04:25