change the owner of a directory from root to the user code example
Example 1: take ownership directory linux
sudo chown -R $USER ~/.blabla
Example 2: ubuntu change directory owner
sudo chown -R $USER ~/.blabla
Example 3: chown
Examples
chown root /u
Change the owner of /u to "root".
chown root:staff /u
Likewise, but also change its group to "staff".
chown -hR root /u
Change the owner of /u and subfiles to "root".