Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

please tell my I don't have to reinstall! 6

Status
Not open for further replies.

Lucifudge

IS-IT--Management
Jul 1, 2003
32
US
I installed Solaris 9

removed roots ability to log in editing /etc/default/login and changing the line to CONSOLE=

I then created a local account using:
useradd -d /export/home/<userid> -s /bin/sh -c "<full name>" -k /etc/skel -m <userid>

I did a ton of othr stuff, added patches and packages, installed SAN packages, antivirus, banners, etc

I then rebooted and tried to log in as my new account and it gave me "incorrect login information" I tried to login as root and was told, as it should have, that I could not. So I looked it up and found that I had forgotten to set the password on the new account and it is locked

am I screwed?

Thanks
 
Not unless you can re-boot from cdrom.


----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
I can reboot from cdrom......what would I do to correct this?
 
boot cdrom -s from ok prompt

mount /dev/dsk/c0t0d0s0 /a

cd /a/etc

TERM=vt100; export TERM

vi shadow

delete root passwd entry

 
You should still be able to login as root from the console shouldnt you?
 
okay, so I ran into an issue

boot cdrom -s from ok prompt <<<DID THIS

mount /dev/dsk/c0t0d0s0 /a <<Here I got the error "/dev/dsk/c0t0d0s0: bad magic number"
If I just type in "mount /dev/dsk/c0t0d0s0" it tells me "/dev/dsk/c0t0d0s0 is already mounted: /cdrom is busy, or allowable number of mount point exceeded."


cd /a/etc

TERM=vt100; export TERM

vi shadow

delete root passwd entry
 
so I found the slice (/a) that root is on, went to /etc and tried to delete the NP from the root entry and was told it was read only. shadow is listed as rw r r

hmmmm

any more help?
 
See faq60-1568

Mike

"A foolproof method for sculpting an elephant: first, get a huge block of marble, then you chip away everything that doesn't look like an elephant."
 
Don't understand why /dev/dsk/c0t0t0s0 was already mounted. That doesn't make sense. Booting from CD does not mount the file system from disk. Here is what I do when I am trying to mount the hard drive partitions from boot cdrom -s.

Once the workstation completes CD boot.

cd /tmp/root
mkdir mnt0
mount /dev/dsk/c0t0d0s0 /tmp/root/mnt0
cd /tmp/root/mnt0/etc

Proceed from there with the terminal setting and edit the shadow file.
 
Lucifudge,

After you delete root's password in shadow, exit vi with wq! The (!) will force over-ride the read only issue.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top