Find the answer to your Linux question:
Results 1 to 5 of 5
How do I confirm if a user logged in, is remote or local? In the case the user is remote, how to be sure what authentication/method is it using, like ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! kirtikjr's Avatar
    Join Date
    Apr 2007
    Posts
    29

    How to confirm a user logged in is a remote user?


    How do I confirm if a user logged in, is remote or local? In the case the user is remote, how to be sure what authentication/method is it using, like LDAP, NIS or other?

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,392
    This will tell you local or remote
    Code:
    last
    For the auth method:
    I believe there is no other way then to review the configuration of that box.
    You must always face the curtain with a bow.

  3. #3
    Just Joined! kirtikjr's Avatar
    Join Date
    Apr 2007
    Posts
    29
    actually theres a user "abc123". Its not listed in /etc/passwd. so i wanted to know it gets authenticated to login to this machine.

    Thanks'

  4. #4
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Maybe look for instances of that username in your system logs:
    Code:
    grep -r abc123 /var/log

  5. #5
    Just Joined!
    Join Date
    Feb 2011
    Posts
    14
    this will list all instance of abc123 your system is configured for
    Code:
    getent passwd abc123
    this will list where your system look for, to authenticate users
    Code:
    grep passwd /etc/nsswitch.conf

Posting Permissions

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