Do you have sudo permissions? Or are you root?
sudo -u www-data mkdir foobar
//or
sudo -u www-data git clone [email protected]
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have nginx setup on ubuntu and I need to mkdir that I can git clone into. Unfortunately, I do not have permission to do so.
I'm logged in as ubuntu and the /var/www is owned by www-data. What would be the solution here to create a folder?
Note: chmod 777 is not the solution.
Please or to participate in this conversation.