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

Share:
37,495

Related videos on Youtube

Nobody
Author by

Nobody

Learn a language then start a project guy.

Updated on September 18, 2022

Comments

  • Nobody
    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
      Nobody over 7 years
      Well i changed ownership of those areas using chown command, that solved it for me!
  • Nobody
    Nobody over 7 years
    Yea yea I did that like I mentioned. It worked thanks anyway :)
  • sandip
    sandip over 4 years
    sudo chmod +rwx /var/www/html worked like a charm.