LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   permission denied :( (https://www.linuxquestions.org/questions/linux-software-2/permission-denied-187007/)

wogga 05-28-2004 12:39 PM

permission denied :(
 
I was trying to move a file across to another directory
using the command
mv myfile /usr
i got the message
mv: cannot move `copy' to `/usr/copy': Permission denied

why am i getting that message?

Lleb_KCir 05-28-2004 12:47 PM

if you dont own either the file or the directory you will get that error.

ls -l and see who is the owner of the file, then do the same thing for that dir.

worst case, su - and move it as root.

kilgoretrout 05-28-2004 12:52 PM

You need to be root to write to /usr; that's the most obvious explanation. If you were root, check the permissions on the file your trying to move; it might be read only, in which case you will have to change the permissions using chmod before you are allowed to move the file, even as root.


All times are GMT -5. The time now is 09:47 AM.