Cp: ​​cannot create directory Permission denied

I have a folder named "Parser" in my directory.

I am trying to copy this folder (Parser) from my own directory to my colleagues directory in / home / vinay

But I get this exception

cp: cannot create directory `/ home / vinay / Parser ': Permission denied

These are the commands that I followed.

-bash-3.00$  cp -r Parser /home/vinay/

cp: cannot create directory `/home/vinay/Parser': Permission denied
+3
source share
2 answers

This is because you do not have permission to write the vinay home folder.

You can do this either as the root user (if you are on the sudoer list), or you can place the file in some place (for example, / tmp) and ask vinay to find it there.

This article is about Linux file permissions . Hope this helps.

+6

Permission denied, , - - vinay - - . ...

+2

All Articles