1753449 Members
6703 Online
108794 Solutions
New Discussion юеВ

MV command

 
Malaya Padhy
New Member

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 5
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!! "
Dennis Handly
Acclaimed Contributor

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...