Login Problem

Posted on 2005-04-15
Last Modified: 2013-12-27
cannot log into the Solaris console because i edited /etc/default/login Console line to be " Console = " now i can't login with root and other ids. Please help. I can't telnet into this box either. I'm locked out.
Question by:vblearner1
    LVL 3

    Accepted Solution

    If you cannot also get in in single user, it looks like you will have to boot from CDROM
    First look at /etc/vfstab and find out what device your / directory is booted from (/dev/dsk/c0t0d0s0 typically, but definetely not always).
    Put installation CD and shutdown your server to the bootprom (/usr/sbin/shutdown -i0 -g0 -y).

    Then type..

      boot cdrom -s

    Once you have a shell prompt, type

    mount -F ufs /dev/dsk/c0t0d0s0 /a       # If or whatever device your / is mounted on


     cd /a/etc/default

    vi login

    and change the offending line.
    Then reboot

    Think I have all the commands and switches correct! I'm awful and remembering all the right syntax!



    Author Comment

    Thanks Yokel, I will try to do that i don't have the CD but will dtry that once i get the CD.
    LVL 5

    Assisted Solution

    If you can ping the server do a port scan.  You can then see what services are running.

    Is ssh enabled?  Did you change any default shells without updating the /etc/shells file?

    If the machine trusts another on the network (e.g. by using .rhosts) you could try to rsh to the box.

    Alternatively, you could remove the boot disk and put it into another machine.  There you could mount the root file system and edit the login config file.

    Many options are possible.

    Good luck, Nisus
    LVL 10

    Assisted Solution

    The /etc/default/login CONSOLE entry is only valid for root, so yo should still be able to login as a user and su to root.

    If not:

    at the console, type <stop><a> (you get to the ok-prompt)

    boot -s

    (boots into single user mode)

    and edit your /etc/default/login

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (, discussed installing the Solaris Operating S…
    Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now