access files question

Disgruntled3lfDisgruntled3lf A+, Net+, Sec+, CCNA, CCNA Security, Linux+, CDIA, Project+, LPIC-1, GCIH, GIAC Advisory Board, WGU Posts: 77Member ■■■□□□□□□□
Hey, so I've passed the L+ and remember from my studies that it is useless to use hosts.allow and hosts.deny both on the same system. But I was recently challenged on that and can't seem to find anything that actually says "If you use hosts.allow then hosts.deny will not be checked". So my question is, can someone point me towards the material that says this? Or did I make this up in my head?

Comments

  • brownwrapbrownwrap Posts: 549Member
    Hey, so I've passed the L+ and remember from my studies that it is useless to use hosts.allow and hosts.deny both on the same system. But I was recently challenged on that and can't seem to find anything that actually says "If you use hosts.allow then hosts.deny will not be checked". So my question is, can someone point me towards the material that says this? Or did I make this up in my head?

    This is out hosts.deny:

    ALL:ALL

    So by default all hosts are denied everything. Only the hosts listed in hosts.allow will have access to applications. If you are using IPTables that can further deny ports and protocols.

    This link explains what I tried to say:

    http://its.virginia.edu/unixsys/sec/hosts.html
Sign In or Register to comment.