Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-28-2004, 12:39 PM   #1
Registered: Apr 2004
Posts: 82

Rep: Reputation: 15
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?
Old 05-28-2004, 12:47 PM   #2
Senior Member
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
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.
Old 05-28-2004, 12:52 PM   #3
Senior Member
Registered: Oct 2003
Posts: 2,505

Rep: Reputation: 193Reputation: 193
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.

Last edited by kilgoretrout; 05-28-2004 at 02:04 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 04:50 AM
Permission Denied jamesvenning1 Linux - Newbie 4 06-05-2005 11:32 AM
Permission denied jagman026 Fedora 3 01-01-2005 03:45 PM
Permission Denied ptreves Linux - Newbie 7 12-16-2004 02:14 PM
Permission denied? jbhoo Linux From Scratch 1 04-27-2002 09:12 PM

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration