I can not copy documents from one directory to another

0

I am starting with a project in Angular 4 and I will use a template downloaded from a page, but when I try to copy the folders that come from assets it does not let me copy them in the other directory, in fact it does not let me create a folder new. The project of angular (folder in which it does not let me copy anything) creates it in root mode, I do not know if that has something to do, what can I do so that I can copy and do things without problems? This is an image of the permissions that both folders have, the one on the left is the angular project and the one on the right is the template folder. This is an image of the permissions that both folders have, the one on the left is the angular project and the one on the right the template folder

    
asked by ulysses316 29.11.2017 в 01:30
source

2 answers

1

The problem is precisely what you mention. You have created the folder as root and therefore only that user can make changes or alterations in that directory and all its children.

What you should do is always create all the directories with the user of the system that you have.

In this case, as root what you should do is the following.

chown -R miusuario:miusuario /mi/ruta/micarpeta

This way, what you are doing is changing the user and group of that directory. So you could already edit and modify that folder.

If you do not know which is your system user, you can execute the following:

whoami

    
answered by 29.11.2017 в 10:29
0

I imagine you should give permissions to that folder by console, with chmod .. Salu2.

    
answered by 29.11.2017 в 01:34