Hi@akhtar,
You got this error because your user is not the owner of /root folder. So you can't change the permission of your folder other than the root user. You need to switch to your root account and run the commands as shown below.
$ su - root
$ chmod o+w /root
I hope this will solve your error.