Re: Question regarding allow and deny users

From: James Dennis (
Date: 02/28/03

  • Next message: Kamen Penev: "X forwarding over multiple ssh tunnels?"
    Date: Fri, 28 Feb 2003 09:52:34 -0500
    From: James Dennis <>

    Hello Samaresh,

    > 1. If a user is put in allow user's list, can the same be put in the deny user's list also? If
    > yes, then is the user allowed access by the sshd?

    Bad idea, just don't do it.

    > 2. If a user is not put in both the lists, is he given access rights? Lets say a user is not
    > in the allow user's list, then by default (I guess thinking logically) he should not be given
    > access rights, in that case, why do we have a deny user's list?

    If there are no Allow/Deny directives all access is allowed (the
    default). If you place AllowUsers james in sshd_config, then only james
    is allowed to access the system and everyone else is denied. If you you
    place DenyUsers james, the default of allowing everyone into the system
    is still there, but james is denied.

    See OpenSSH's mailing list archive for information regarding
    questionable behavior of how Allow/Deny Users/Groups behaves. Ben
    Lindstrom was kind enough to fix the behavior for OpenSSH's current
    source and I modified his patch to work for OpenSSH's 3.5 release (I
    just changed line numbers, Ben is still the code wizard).

    Also, for any more confusion, please check the man. This stuff is
    written up pretty clearly in there.

    James Dennis
    Harvard Law School
    "Not everything that counts can be counted,
    and not everything that can be counted counts."

    Relevant Pages

    • Re: Guinness Premiership transfers - definitive
      ... > given the number of dreadfully inaccurate "official" lists going around on ... > brought in both US Eagle loosehead Mike MacDonald and Tongan / Islanders ... > RL), Juan Manuel Leguizamon, Olivier Magne, James ... >, Adam Halsey, Michael Haslett, Mark Mapletoft, ...
    • Re: Forgive me if this has already been posted...Bob at #7!!!
      ... 81 John Lee Hooker ... 74 James Taylor ... 68 Wilson Pickett ... Fuck lists. ...
    • RE: Electoral Lists
      ... Subject: Electoral Lists ... Is there any information re the compiling of the list for the 1945 ... James baptised in St Mary Whitechapel, in 1871 census with parents James ... In 1939 the persons were Elizabeth and Edward Shea and James ...
    • Re: Best writers I havent yet read
      ... In the glory days of Alexandria Digital Literature, ... highest-recommended works (on our personal recommendation lists) that ... James Branch Cabell ... M. John Harrison ...
    • Statemented
      ... On a slightly bizarre note thobut they sennt us three lists of ... fpubbies that James could go to so we could pick what we gooved might ... TAAW none of these schools were in Gloucestershire ...