mv warning set owner/group: Operation not permitted

Hi,

Thanks for looking into this.
I am running into below situation in free BSD.

I have a file in /tmp/sample.txt with owner as 'xyz' and group as 'wheel'
I am moving it to my home dir/newsample.txt whihc has owner 'xyz', but group 'someother' with below command, getting warning, but it is moving file correctly.

mv /tmp/sample.txt /home/ramana/newsample.txt
mv: /home/ramana/newsample.txt: set owner/group (was: 4733/0): Operation not permitted

Please suggest.

Thanks,
Ramana

Hi ramanaraoeee, it seams that the user xyz do not belongs to the group 0, so the file can not be moved with the same properties.

if you want to ignore the error try using the force option with the mv command mv -f .....