Permission 777 for a Folder and Its Contents (P7FC)


P7FC:   SOLD       






AVAILABLE:    5

Hi dev, ever felt like a noob using Linux? It’s okay—I’ve been there too. To make it worse, I didn’t know how to delete or modify files in a specific folder. I felt embarrassed in front of Linux.

So, here’s the story: I was building a website and placed it in the htdocs folder. For some reason, my program kept failing to create a log file.

Sure, the console did warn me that the program I was developing didn’t have permission to modify, create, or delete files—read-only, folks.

The problem was, I didn’t remember the command to unlock the permissions for that directory.

Long story short, I used my Google-fu skills and decided to jot it down here for easy access when I need it again.

Here’s how you can unlock permissions for a specific directory:

chmod -R 777 /www/store


But if I’m already in the target directory, I just use this command:

chmod -R 777 ./


Alright, done!


Post a Comment

Previous Next

نموذج الاتصال