Hi and welcome to the forum
ls -l /
will show who owns what in the /
Most should be owned by root in a fresh install. Question is why you want to look into /root/ folder, there is nothing of interest there, it is a place for the root user config files, this is traditionally a different folder then /home/[username] since /home/ could be on a different drive or even network.
/sys/ is a virtual filesystem (everything is a file) and changing things does indeed produce errors
Since your new to Linux this post is a good way to start getting up to speed.
The only help / advice here is to reverse the command to see if it fixes it (remember to make your user the owner of their own home folder) or easier, reinstall to have fresh working system.
Part of example output of ls -l /
lrwxrwxrwx 1 root root 7 20 jan 2021 lib -> usr/lib
lrwxrwxrwx 1 root root 7 20 jan 2021 lib64 -> usr/lib
drwx------ 2 root root 16384 4 dec 2020 lost+found
drwxr-xr-x 2 root root 4096 26 sep 2020 mnt
drwxr-xr-x 6 root root 4096 6 mei 20:54 opt
dr-xr-xr-x 404 root root 0 16 aug 21:57 proc
drwxr-x--- 9 root root 4096 6 mrt 20:43 root
drwxrwxrwt 17 root root 400 16 aug 23:43 tmp
Root owns the lot by default, other users ( the last 3 positions on the start of the line cannot Read,Write or Execute anything in /root/ but can in /tmp/