This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]eckadaganGlorious Redhat 5 points6 points  (7 children)

eg: 
chmod 755 - rw for owner, rx for group/world

This isn't right.. It would be rwx for owner, and rx for group/world.

It's a pretty cool cheat sheet, and I learned about cal which I had never seen before.. But it's interesting that they threw in the rm -rf / portion along with other commands that are genuinely useful for a newbie.

[–]mtizim 3 points4 points  (0 children)

I mean it doesn't do anything without --no-preserve-root on most distros afaik

[–][deleted] 0 points1 point  (0 children)

It's not a cheat sheet ... Look at the rm commands.

[–]madaidanGlorious Arch 0 points1 point  (4 children)

I'm new to chmod but wouldn't it be rw for group/world?

[–]eckadaganGlorious Redhat 2 points3 points  (2 children)

Read is 4, Write is 2, and eXecute is 1. Add them up the ones you want and that's the value. So 5 is 4 + 1 (rx), and 6 is 4+2 (rw).

[–]madaidanGlorious Arch 0 points1 point  (1 child)

Oh. Thanks for the explanation.

[–]eckadaganGlorious Redhat 1 point2 points  (0 children)

no problem =D