Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Login Problem

Posted on 2005-04-15
Medium Priority
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

Accepted Solution

yokel earned 150 total points
ID: 13791741
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

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

Assisted Solution

Nisus091197 earned 105 total points
ID: 13794371
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

neteducation earned 120 total points
ID: 13794763
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
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…
Suggested Courses

580 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