New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Terminal root confusion


Post Reply New Thread Subscribe

 
Thread Tools
chriswcs

 
Member Since: Dec 07, 2010
Posts: 2
chriswcs is on a distinguished road

chriswcs is offline
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?

Thanks!
QUOTE Thanks
MacsWork

 
MacsWork's Avatar
 
Member Since: May 22, 2005
Location: Closer than you think.
Posts: 2,132
MacsWork is just really niceMacsWork is just really niceMacsWork is just really niceMacsWork is just really niceMacsWork is just really nice
Mac Specs: Performa 6116 2GBSCSI 8MB OS 7.5.3

MacsWork is offline
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.
QUOTE Thanks
XJ-linux

 
XJ-linux's Avatar
 
Member Since: Jul 02, 2007
Location: Going Galt...
Posts: 3,340
XJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond repute
Mac Specs: MacBookAir5,2:10.9.4-MacMini3,1:10.9.4-iPhone6,1:7.1.2

XJ-linux is offline
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.

"Those who don't understand Unix are condemned to reinvent it, poorly." Henry Spencer
QUOTE Thanks
DaFlake

 
Member Since: Jun 02, 2008
Posts: 709
DaFlake has a spectacular aura about

DaFlake is offline
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?
QUOTE Thanks
technologist

 
Member Since: Mar 30, 2004
Location: USA
Posts: 4,744
technologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond repute
Mac Specs: 12" Apple PowerBook G4 (1.5GHz)

technologist is offline
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
Code:
PS1='\h:\W \u\$ '
the \h part means "hostname." (The above posters have explained why your hostname might be "matt-pc.")
QUOTE Thanks
chriswcs

 
Member Since: Dec 07, 2010
Posts: 2
chriswcs is on a distinguished road

chriswcs is offline
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.
QUOTE Thanks

Post Reply New Thread Subscribe


« Pages and Word and PDF | Upgrade to Leopard from Tiger »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Terminal Won't Open icefall5 OS X - Operating System 7 08-25-2010 08:26 AM
Are these processes ok? xoxmisscourtney OS X - Operating System 3 02-18-2010 12:05 AM
All mac applications quit unexpectedly jollyrgr OS X - Operating System 8 01-21-2010 07:05 PM
Imac Drive read noise every 2 sec crosswire OS X - Operating System 5 01-08-2008 12:12 PM
Post your Activity Monitor Zoolook OS X - Operating System 1 09-11-2007 12:54 AM

All times are GMT -4. The time now is 01:08 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?