Benches macOS

3

Last login

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

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!

3 replies

Sign in or join Beachball Help to reply.

  1. 0

    thepotter

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    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.

  2. 0

    Michael Conniff

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    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.

  3. 0

    thepotter

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Quite clearly I was confused -- I definitely didn't answer the question. 😉