Using Ubuntu 16.04, I gave all the permission of my home folder to an unknown username and now I am unable to write to the files under my home folder including Documents, Downloads etc...
How do I give back permission to the current user account?
Using Ubuntu 16.04, I gave all the permission of my home folder to an unknown username and now I am unable to write to the files under my home folder including Documents, Downloads etc...
How do I give back permission to the current user account?
To change the ownership of a directory recursively run
sudo chown -R USER: PATH
and replace USER
with the user name and PATH
with the path of the directory tree in question (here: the home directory).
/var/www/html
(mind the slash direction!) have to do with your user account's home directory. Please [edit] your post when you want to clarify something or add information. It’s best to have everything relevant in one place. Additionally, comments may be deleted for various reasons. Thanks. – David Foerster Mar 07 '18 at 14:32