LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-21-2012, 06:01 AM   #1
kpatel97
LQ Newbie
 
Registered: Jun 2012
Posts: 9

Rep: Reputation: Disabled
How can differentiate between two machine in linux


Hi All

i want to differentiate between two or more machine in linux,from wich machine it is logged, can we identified it
without mentioning ip addresses
 
Old 06-21-2012, 06:57 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
Sorry but you'll need to be a bit clearer in what the problem is, could you please provide some more information?
 
Old 06-21-2012, 07:00 AM   #3
mannmaniyar
LQ Newbie
 
Registered: Apr 2009
Posts: 22

Rep: Reputation: 0
You can differentiate two or more Linux Machines using there hostname. For many linux distors the default prompt is "username@hostname".
 
Old 06-21-2012, 09:20 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
If you mean what I think, try http://linux.die.net/man/1/who
 
Old 06-21-2012, 10:22 PM   #5
fogpipe
Member
 
Registered: Mar 2011
Distribution: Slackware 64 -current,
Posts: 550

Rep: Reputation: 194Reputation: 194
You might want to take a look at this as well. It shows how to use different colored prompts for root and different users. If you make the hostnames different colors as well its a good visual cue for the machine you are working on.
https://wiki.archlinux.org/index.php/Color_Bash_Prompt
 
Old 06-22-2012, 02:19 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
The question if vague I agree.

Would you say that you mean? We have a linux computer A. We have a user Bob account on both computer B and computer C.
Can I tell if Bob is logged in from Computer B or from Computer C by some way?
 
Old 06-25-2012, 04:23 AM   #7
kpatel97
LQ Newbie
 
Registered: Jun 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
actually i want to trace the user machine and disable him,force him to login through a recognized server
 
Old 06-25-2012, 04:43 AM   #8
whysoserious
Member
 
Registered: May 2012
Location: London
Distribution: Debian and slackware for uni
Posts: 61

Rep: Reputation: Disabled
User@hostname. That is the general way to differentiate users on a network. Do you want to trace the actual machine or the user?
 
Old 06-25-2012, 09:22 AM   #9
kpatel97
LQ Newbie
 
Registered: Jun 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
we want to trace system, can we also categorize it trough group id.
 
Old 06-25-2012, 09:51 AM   #10
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Is the requirement to identify a Linux system that is logging in to another Linux system?

If so, how is the logging in being done? ssh? An HTTP form? X display manager?
 
Old 06-25-2012, 09:55 AM   #11
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,027

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
Quote:
Originally Posted by kpatel97 View Post
actually i want to trace the user machine and disable him,force him to login through a recognized server
host.allow, hosts.deny ?
 
  


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
how to differentiate linux server and desktop ?? narendra1310 Linux - Newbie 5 06-22-2010 02:44 PM
how to differentiate two versions of qt wagmare Linux - Newbie 6 03-09-2009 09:22 AM
how to differentiate virtual desktops? eublade Linux - Desktop 4 08-13-2007 11:05 PM
how to differentiate between a Linux Server and a Linux Client khattaking Linux - Networking 5 08-06-2006 05:05 AM
how to differentiate processes ugp Programming 5 03-03-2006 12:45 AM


All times are GMT -5. The time now is 10:46 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration