sudo -i # log in as root
su - www-data -s /bin/bash
As the config command then wanted to store the config under /var/www which was denied due to root ownership i just pasted the output to another file under /var/www/html/rclone/rclone.conf where both directory and file was owned by www-data.
I still don't understand though why it did not work to have the same rclone/rclone.conf under /home/patrik/.config with the owner/permissions. Probably some error by me