Linux directory persmissions

I switched from coding on Windows to coding on Linux.
Got everything up and running on EndeavourOS because of the NVIDIA compatibility.

For my web dev activities, I use XAMPP for a local server. Currently working with WordPress the default directory for XAMPP is opt/ which can only be written to with admin permission.

File management can be done with sudo in the cli, but when I try to upload pictures to WordPress or manage plugins, I only got default user permissions in opt/lampp.

What solutions are possible to fix this?

1 Like

You shouldn’t be using that directory, probably.