cancel
Showing results for 
Search instead for 
Did you mean: 

MV command

 
Malaya Padhy
Occasional Visitor

MV command

I am getting the error
cannot set file owner or group: Permission denied while moving directory from one to another location.

Can you please let me know the appropiate methode to overcome this error.
5 REPLIES
johnsonpk
Honored Contributor

Re: MV command

Hi Malaya,

Are you executing mv command as root ?
what is the permission of the source and destination directories ?

Regds
Johnson
Patrick Wallek
Honored Contributor

Re: MV command

Is the destination an NFS mount point?

Showing the command that you used may be helpful as well.
Nido
Trusted Contributor

Re: MV command

Hi,

Error is for "Permission Denied".
You should have write permission on the Destination Direcory to move the files.


Thanks,
" Let Villagers Be Happy!! "

Re: MV command

>cannot set file owner or group: Permission denied while moving directory from one to another location.

You can get this error if you are moving the directory from one filesystem to another. In this case, the directory tree must be copied.
If you don't have CHOWN privilege, you may get this. See getprivgrp(1).
B. Hulst
Trusted Contributor

Re: MV command

How about doing first a copy and after the copy is successful you perform a delete of the old location? Much easier to troubleshoot...