I am working on a compression script. it reads the directories and compress the files and folder and moves compressed files/folder to a Out folder.
When i create folders in side the Out from my php script i dont have write access to to those folders there afeter, but when tried with cmd it isn’t .its like this
drwxr-xr-x 6 root root 4096 Jan 30 08:25 erik
drwxr-xr-x 6 root root 4096 Jan 27 11:39 gayan
drwxr-xr-x 5 root root 4096 Jan 27 12:00 iyan
**drwxr-xr-x 5 root root 4096 Jan 30 09:50 Samuli**
drwxrwxr-x 2 plusmedia plusmedia 4096 Jan 30 09:56 ssss
what would cause this? any solution is admire, Thanks
This is because the current user with which you are executing the php script do not have permission to write in that folder. You could switch to root user through terminal and then:
Hope this helps you 🙂