Last login

I have a pretty dull question I'm afraid. Since upgrading to Leopard, Terminal shows the line "Last login: Mon Feb 18 02:46:44 on console" whenever it's started up, for all accounts but my own one, which shows "ttys000" instead of console. Basically, I was wondering how to change ttys000 to "console". I'm guessing there's a file I need to delete somewhere in my home folder that fixes it?

Thanks in advance!

Macbook, Mac OS X (10.4.10), Black, 2.16Ghz Core 2 Duo, 2GB Crucial RAM,160GB HDD

Posted on Feb 17, 2008 7:14 PM

Reply
3 replies

Feb 18, 2008 8:11 AM in response to GwiDan

If you are using bash, this explains all: http://www.linuxjournal.com/article/3215

Once you've set up the prompt you want, just save it in ".profile" in your home directory. If you are using tcsh, try this:
http://www.macosxhints.com/article.php?story=20010105143829632

If you aren't sure which shell you're using, just try a command. If it does nothing, then try instructions for the other.

Feb 18, 2008 3:56 PM in response to GwiDan

GwiDan wrote:
I have a pretty dull question I'm afraid. Since upgrading to Leopard, Terminal shows the line "Last login: Mon Feb 18 02:46:44 on console" whenever it's started up, for all accounts but my own one, which shows "ttys000" instead of console.

Strange—I have the same behaviour and hadn't noticed that before.

If I start up another Terminal window, then quit Terminal, the next time I start it I get "ttys001". With more windows I can get "ttys002" etc. I can get back to "ttys000" by logging out the additional windows before quitting, but I can't make the final step back to "console" this way. I can't see where this might be saved, either, except of course in wtmp.

Ah! A clue in the man page for utmp, wtmp and lastlog :
FILES
*(These files no longer exist in 10.5 or later.)*
/var/run/utmp The utmp file.
/var/log/wtmp The wtmp file.
/var/log/lastlog The lastlog file.

so something has changed under the hood!

BTW, thepotter must have misunderstood you, since his post relates to changing your prompt, which isn't what you asked about.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Last login

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.