LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 08-04-2011, 08:02 AM   #1
kirtikjr
Member
 
Registered: Apr 2007
Location: banglore
Distribution: RedHat EL v4
Posts: 35

Rep: Reputation: 15
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?
 
Old 08-04-2011, 08:18 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
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.
 
Old 08-04-2011, 09:11 AM   #3
kirtikjr
Member
 
Registered: Apr 2007
Location: banglore
Distribution: RedHat EL v4
Posts: 35

Original Poster
Rep: Reputation: 15
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'
 
Old 08-04-2011, 10:16 AM   #4
omgs
Member
 
Registered: Dec 2010
Posts: 64

Rep: Reputation: 6
Try "getent passwd" to see all possible users.
 
Old 08-05-2011, 05:41 AM   #5
kirtikjr
Member
 
Registered: Apr 2007
Location: banglore
Distribution: RedHat EL v4
Posts: 35

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gnome: Auto mounting external devices as first user logged in, not current user yitzle Linux - Software 4 04-01-2008 10:43 AM
is last -i showing remote user logged in? b_s Linux - Security 8 03-05-2005 01:32 AM
Multi-user and 3D sharing, 3D only works for the first logged in user foxy123 Suse/Novell 0 02-20-2005 05:31 AM
mozilla works fine when logged in as a user but crashes when logged in as root jimi Linux - General 6 04-02-2003 09:34 PM
Remote message: User: already logged onto system 1 time(s). jamaso Linux - General 1 11-08-2002 06:08 AM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration