LinuxQuestions.org
Review your favorite Linux distribution.
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, 05: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, 05:57 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
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, 06: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, 08:20 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,349

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

Rep: Reputation: 196Reputation: 196
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, 01:19 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,965

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
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, 03: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, 03: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, 08: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, 08:51 AM   #10
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
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, 08:55 AM   #11
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:14 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
Open Source Consulting | Domain Registration