Find the answer to your Linux question:
Results 1 to 4 of 4
Does anyone know how to restrict only certain users to log into my RHEL 5.3 cluster? I have tried using pam.d but no luck....
  1. #1
    Just Joined!
    Join Date
    Aug 2010
    Posts
    3

    Question To restrict user login on RHEL 5.3 cluster

    Does anyone know how to restrict only certain users to log into my RHEL 5.3 cluster? I have tried using pam.d but no luck.

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,099
    give them /sbin/nologin as login shell in /etc/passwd
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Aug 2010
    Posts
    3
    It is connected to NIS to authenticate users, so editing local /etc/passwd wouldn't help.

  4. #4
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,099
    To my shame, I must admit I never set up a NIS server.

    But I know for sure, that it hosts the same fields as a passwd does.
    So, change the default shell for the appropiate NIS users to /sbin/nologin
    You must always face the curtain with a bow.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...