LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to confirm an user logged in is a remote user? (https://www.linuxquestions.org/questions/linux-server-73/how-to-confirm-an-user-logged-in-is-a-remote-user-895516/)

kirtikjr 08-04-2011 07:02 AM

How to confirm an 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?

acid_kewpie 08-04-2011 07:18 AM

just use the "w" command. The authentication mechanism is not relevant though once connected. You can look in /var/log/secure for authentication logs and marry them up if need be.

kirtikjr 08-04-2011 08:11 AM

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'

omgs 08-04-2011 09:16 AM

Try "getent passwd" to see all possible users.

kirtikjr 08-05-2011 04:41 AM

getnet passwd showed a lot of users, but the problem is fixed now.
I tried to diable nis in etc/nsswitch.conf, the user could not login.
I uncomemnted the nis option for passwd. the user can login./
Hence we can conclude that the user needed NIS to login.


All times are GMT -5. The time now is 03:43 PM.