Results 1 to 6 of 6
  1. #1

    Member Since
    Dec 07, 2010
    Terminal root confusion
    Hey all,
    I'm new to this forum, and I'm really confused as to why my computer is looking like this:

    It says matt-pc, but I'm on a macbook and my name isn't Matt.

    Is there any way to change it? And has my computer been compromised?


  2. #2

    MacsWork's Avatar
    Member Since
    May 22, 2005
    Closer than you think.
    Performa 6116 2GBSCSI 8MB OS 7.5.3
    Is it a public network? Are you using DHCP?

    For what ever reason it appears that the the prompt in the terminal picks up the host name of the last computer to have the DHCP address on that network if that lease address is still active. Not sure if this is true for all DHCP servers or not.

    .....or at least that is my belief. It happens to us all at some point or another if you are hoping from network to network on a regular basis.

  3. #3

    XJ-linux's Avatar
    Member Since
    Jul 02, 2007
    Going Galt...
    Perhaps try deleting your network interface and adding it again? If you have access to the DHCP server or router that handles your overhead, you could also try removing that system's entry. I've seen on occasion where an old /etc/hosts file will have a legacy ip/hostname entry that clashes with what DHCP wants to assign. Of course, someone could just be having fun with you and edited your PS1 value in your .profile settings. You could try an nslookup on your system and see what the network believes it to be. That might at least distinguish as to whether it is your computer or network that is acting oddly.
    Never judge a man, untill you have walked a mile in his shoes...
    That way you'll be a mile away from him, and you'll have his shoes.

  4. #4

    Member Since
    Jun 02, 2008
    Go to system preferences and select sharing. Then select the edit button. What is listed there? Was this a used machine when you got it?

  5. #5

    Member Since
    Mar 30, 2004
    12" Apple PowerBook G4 (1.5GHz)
    If you just want to change what the Terminal says, change the prompt string (PS1) variable in the /private/etc/bashrc file.

    The default value for the prompt string under Snow Leopard is
    PS1='\h:\W \u\$ '
    the \h part means "hostname." (The above posters have explained why your hostname might be "matt-pc.")

  6. #6

    Member Since
    Dec 07, 2010
    Thanks for all the replies!
    I was at my home connection before, but now that I'm at a coffee shop, it is no longer appearing as matt-pc.

    Quote Originally Posted by DaFlake View Post
    Go to system preferences and select sharing. Then select the edit button. What is listed there? Was this a used machine when you got it?
    It's listed as woosterson's macbook. And yes, I bought it from someone on craigslist about a year ago, but I've reformatted it at least 3 times and installed SL.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Month in Terminal is in Russian - only in Terminal!
    By yoandrew in forum macOS - Operating System
    Replies: 4
    Last Post: 12-29-2012, 09:20 AM
  2. root as default terminal login
    By ecarter202 in forum macOS - Operating System
    Replies: 4
    Last Post: 12-14-2012, 09:20 AM
  3. Remove root from login window WITHOUT disabling root?
    By flipjarg in forum macOS - Operating System
    Replies: 2
    Last Post: 06-25-2010, 05:09 PM
  4. root password for installations GUI < > terminal
    By blini in forum macOS - Development and Darwin
    Replies: 16
    Last Post: 03-29-2008, 04:42 PM
  5. :/ root# ????
    By morpheus in forum Apple Desktops
    Replies: 5
    Last Post: 08-04-2006, 01:17 PM

Posting Permissions

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