Permission denied to view directory
37,495
Try using sudo chown yourUserName /path/to/folder
this will give you ownership of the directory if it was for some reason mounted as root. If this still doesn't work try chmod +rwx /path/to/folder
which will allow reading and writing to that directory
Related videos on Youtube
Comments
-
Nobody over 1 year
I copied contents of my pendrive to a directory in mint machine. When I tried to click the copied contents through gui to view it said, "You do not have the permissions necessary to view the contents". In the other thread it was said that I can view my file by elevating privileges to the gui by gksudo command but do I have to do that everytime i copy a file from an external source. What can be done?. I need to differently copy or add permissions to the directory?. Please let me know.
-
Nobody over 7 yearsWell i changed ownership of those areas using chown command, that solved it for me!
-
-
Nobody over 7 yearsYea yea I did that like I mentioned. It worked thanks anyway :)
-
sandip over 4 years
sudo chmod +rwx /var/www/html
worked like a charm.