Single User Mode without a using init S
Hey everyone,
I recently was trying to configure ldap on SunOS 5.10 and accidentally edited the pam.conf file to use ldap verification for the login and remote login. After I rebooted I realized that I hadn't worked out all the ldap configuration kinks and when I got to the login screen, the root login (or any other account for that matter) did not work. I want to get to single user mode or some sort of run level where I can edit the pam.conf file so it doesn't use ldap anymore. The problem is, stop-a doesn't seem to work, and I can't get any terminal/console sessions started so I can reboot the machine to single user mode. I also tried using the serial connection, and hit break a bunch of times with no luck. Neither the regular screen or serial screen really seems to give me the opportunity to break the bootup process and edit any files. Any ideas? I have physical access to the machines, which should count for something, right?
Thanks!
[974 byte] By [
CLawa] at [2007-11-27 6:56:35]

# 1
If stop-a and send break are not working, there is another simple solution if you have physical access to the system.
Boot from CDROM. From the boot prom issue:
boot cdrom -s
Once in single user mode mount the root disk (something like):
mount /dev/dsk/c0t0d0s0 /mnt
Then edit /mnt/etc/pam.conf
Once you get logins working again figure out why stop-a is broken, check this site. Maybe you disabled it?
http://www.unixguide.net/sun/manager/15.2.shtml
# 2
if got this kind of problem i will do something like the following 1. boot system from cdrom in single user mode ok boot cdrom -s 2 . mount root filesystem at /a mount /dev/dsk/c1t0d0s0 /a 3. edit /a/etc/pam,conf correctly and boot the system normally
# 3
I did some quick searching for boot cdrom and found more information about booting. As of now I have 2 connections to the computer - one is serial, and one is direct (monitor + mouse and keyboard directly). The serial connection is on a linux box that does not have the stop+a key, which seems to be the only way I can find online to get into the ok prompt. The stop+a key on the directly connected keyboard does nothing to halt the startup, do I have to press this on the linux box through the serial (meaning switch the linux and solaris keyboards)? If not, what should I be doing?
Thanks for the help so far.
CLawa at 2007-7-12 18:33:36 >

# 4
Depending on what program you are using to create the serial connection you will need to "Send+Break". For example if you are using `cu` you need to type ~# to send break. Some program you have to type CTRL+] to get to a prompt, then you type send_break, etc...