A Unix/Linux Permissions Refresher

By Daniel Miessler on April 16th, 2007: Tagged as Linux | Security | Sysadmin | Unix
  • http://slashback.org/blog/ Tim

    When I was in apple training, the professor tricked us all with this question:

    “Can you delete a read-only file in a directory in which you have write permissions?”

    The answer, it appears, is yes… at least in OS X. I find that it’s also true in linux. If you can read a file in your home directory, you can delete it.

    He explained the semantics of it to us, but I don’t exactly remember it.

    Hell, I’m not even sure I remember the question correctly.

  • http://slashback.org/blog/ Tim

    When I was in apple training, the professor tricked us all with this question:

    “Can you delete a read-only file in a directory in which you have write permissions?”

    The answer, it appears, is yes… at least in OS X. I find that it’s also true in linux. If you can read a file in your home directory, you can delete it.

    He explained the semantics of it to us, but I don’t exactly remember it.

    Hell, I’m not even sure I remember the question correctly.

  • http://dmiessler.com/ Daniel Miessler

    It’s easy enough to check, but I don’t think that’s the case. I have a feeling he was referring to the sticky bit issue somehow.

  • http://dmiessler.com Daniel Miessler

    It’s easy enough to check, but I don’t think that’s the case. I have a feeling he was referring to the sticky bit issue somehow.


Top

Popular

Information Security / Technology

Politics

Philosophy & Religion

Technology & Science

Culture & Society

Miscellaneous

Arguments

Projects

Collections

Twitter

What I'm Reading

Favorite Books and Essays

Top Blog Categories

Inputs