Unable to navigate to /opt/lampp/htdocs in Ubuntu after granting permissions

不想你离开。 提交于 2019-12-24 11:35:17

问题


Problem
I installed lampp in my fresh Ubuntu 18.04 computer. I'm using Gitkraken and i want to clone a repository inside /opt/lampp/htdocs, but Gitkraken gui shows me a permission error (Could not read the contents of opt) when i try to navigate to /opt or hardcode /opt/lampp/htdocs.

What i have tried
1. First i followed the steps from this question:
sudo chown -R username:username /opt/lampp/htdocs
2. Then i tried chmod
sudo chmod 755 -R /opt/lampp/htdocs

My folder owner is correct

// htdocs owner:
drwxrwxr-x 6 myusername myusername 4096 sep 20 23:27 /opt/lampp/htdocs/

// Gitkraken is in:
/snap/girkraken

I don't know why i can't access that folder if my user is the owner. I'm running out of ideas. Any tips?

Thanks!


回答1:


Solved!

Turns out that installing Gitkraken from "Ubuntu Software" puts it in /snap/gitkraken folder which has very restricted permissions.

Just download it from Gitkraken's website and do the basic permission granting for /opt/lampp/htdocs and you are ready to go!



来源:https://stackoverflow.com/questions/52449437/unable-to-navigate-to-opt-lampp-htdocs-in-ubuntu-after-granting-permissions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!