I recently reinstalled Ubuntu 16.04 and copied back all my backed up files. I used same method and user name. But I must have done something wrong. I How to change permissions in folders and files from "root" to "me" in Ubuntu 16.04 but I struggle with command line and things like chmod
so I prefer
gksudo nautilus
but I am having to set my permissions to allow me access instead of just root. So I have to set permissions on every folder I want to access, every subfolder and every file in those folders. Home folder is ok but when I want to work in
/opt/lampp/htdocs
for example it is very tedious and I am constantly finding other areas with the same problem. Alternatively I could set my privileges as root but that has security / safety issues I believe. I really want to give myself selected entire folders including subfolders and all files contained using Nautilus GUI if possible.
sudo chown -R <User> /path/to/folder
where the -R is for recursive. To tweak your question you should add this "recursive" keyword to the title..