srsudar / eg

Useful examples at the command line.
MIT License
1.82k stars 99 forks source link

Adding an example for correcting file-permissions #19

Closed momeni closed 9 years ago

srsudar commented 9 years ago

Are these examples different from the other chmod one above it? They look like they're demonstrating the same thing to me, but I'm wondering if I'm missing something...

momeni commented 9 years ago

Conceptually, they are not new. Practically, they are ready-to-copy-and-run commands for a recurring situation (an unzipped file which doesn't hold permissions).

On Sun, May 3, 2015, 9:01 PM Sam Sudar notifications@github.com wrote:

Are these examples different from the other chmod one above it? They look like they're demonstrating the same thing to me, but I'm wondering if I'm missing something...

— Reply to this email directly or view it on GitHub https://github.com/srsudar/eg/pull/19#issuecomment-98499754.

srsudar commented 9 years ago

Ah I see. So they're giving directories (the -type d example) 755 permissions, and files 644 permissions? So it's copy pasteable and more useful because the one above it only applies to php files?

If that's the case I'm tempted to pull this and remove the php example for these more general cases.

momeni commented 9 years ago

Yes, it is so.

On Sun, May 3, 2015, 9:26 PM Sam Sudar notifications@github.com wrote:

Ah I see. So they're giving directories (the -type d example) 755 permissions, and files 644 permissions? So it's copy pasteable and more useful because the one above it only applies to php files?

If that's the case I'm tempted to pull this and remove the php example for these more general cases.

— Reply to this email directly or view it on GitHub https://github.com/srsudar/eg/pull/19#issuecomment-98504436.

srsudar commented 9 years ago

Excellent point. I'll pull this and make the change in the next couple days.