Forgive me Gurus but I've f**ked up big time HELP HELP HELP!

Forgive me Gurus but I've f**ked up big time HELP HELP HELP!

Post by jem2.. » Tue, 04 Jul 2000 04:00:00



OK I have really gone & done it!

I was using an old Sun box we have in the office,
for which we have a root user and a root
password, but that's about it.

OK thought I, I'll just make myself a new user so
I did, I used USERADD which then told me to run a
password updating utility, I think called PASSUPD
or maybe PASSCONV but I didn't write it down. The
app ran, no problem and, with no comments
returned me to the shell prompt. So I set up my
password for my new user, crossed my fingers and
logged out.

STUPID STUPID STUPID!

Now when I try to log in as root with the root
password it won't let me in. I can get in as my
new user but with hardly any access rights.

What gives? What have I done? How on earth did
the root password change without it telling me?
What sort of an OS changes root
password "invisibly". Aargh. I need to get this
machine back and running by the end of today and
I haven't a clue how to.

Anyone, anywhere? Any ideas? Any hints? PLEASE
PLEASE PLEASE!

BTW I'm using SunOS 5.4 on a SUN Sparcstation 20

OK, laugh...go on...laugh. Damn Damn damn

Jeremy

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Forgive me Gurus but I've f**ked up big time HELP HELP HELP!

Post by Andy » Tue, 04 Jul 2000 04:00:00




> OK I have really gone & done it!

> I was using an old Sun box we have in the office,
> for which we have a root user and a root
> password, but that's about it.

> OK thought I, I'll just make myself a new user so
> I did, I used USERADD which then told me to run a
> password updating utility, I think called PASSUPD
> or maybe PASSCONV but I didn't write it down. The
> app ran, no problem and, with no comments
> returned me to the shell prompt. So I set up my
> password for my new user, crossed my fingers and
> logged out.

> STUPID STUPID STUPID!

> Now when I try to log in as root with the root
> password it won't let me in. I can get in as my
> new user but with hardly any access rights.

*IF* you can shut it down, boot from cdrom and exit out of the
install at the first opportunity. Mount the old / directory
somewhere, edit the shadow file by hand. reboot.

--
-Andy M
http://synecdoche.net/~andy

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Forgive me Gurus but I've f**ked up big time HELP HELP HELP!

Post by Gopal » Tue, 04 Jul 2000 04:00:00


I dont see anything really wrong in what you did :) It is very common,
even big gurus' also do that. But do realize when you touch passwd
command or file, before logging out, if you can return back or not.
Anyway, as Andy suggested, shut it down ( STOP-A, boot cdrom) and boot
from cdrom. during installation, right click on Openwindow desktop area
and open a Terminal.
Check if your root disk is mounted or not. If not ( you must know which
is your root disk, if you have more than one disk ), mount
/dev/dsk/cxtxdxsx /mnt
and vi /mnt/etc/shadow
locate the root entry and change the Seconds column to NP ( no password
). Or whatever is appropriate to SunOS5.4.
Save the file, unmount the /mnt filesystem, reboot you must be all set.
Keep backups of passwd and shadow files whenever you are doing such
changes in future.

Gopi.



> OK I have really gone & done it!

> I was using an old Sun box we have in the office,
> for which we have a root user and a root
> password, but that's about it.

> OK thought I, I'll just make myself a new user so
> I did, I used USERADD which then told me to run a
> password updating utility, I think called PASSUPD
> or maybe PASSCONV but I didn't write it down. The
> app ran, no problem and, with no comments

Sent via Deja.com http://www.deja.com/
Before you buy.
 
 
 

Forgive me Gurus but I've f**ked up big time HELP HELP HELP!

Post by Jem » Tue, 04 Jul 2000 04:00:00


Ah, but that assumes I have the CD-ROM!!! This box is so old noone knows
where the CDROM is.

I have access to another one of these boxes (if they let me touch it!!)
which apparently provides Network Information Services to the broken
box. We tried making the password files and pushing them down to the
broken box but it didn't seem to make any difference.

Is it possible to create a boot floppy on the working box that can mount
up the SCSI drives in the broken box and thus allow me to access the
pasword files??

Jeremy


says...



> > OK I have really gone & done it!

> > I was using an old Sun box we have in the office,
> > for which we have a root user and a root
> > password, but that's about it.

> > OK thought I, I'll just make myself a new user so
> > I did, I used USERADD which then told me to run a
> > password updating utility, I think called PASSUPD
> > or maybe PASSCONV but I didn't write it down. The
> > app ran, no problem and, with no comments
> > returned me to the shell prompt. So I set up my
> > password for my new user, crossed my fingers and
> > logged out.

> > STUPID STUPID STUPID!

> > Now when I try to log in as root with the root
> > password it won't let me in. I can get in as my
> > new user but with hardly any access rights.

> *IF* you can shut it down, boot from cdrom and exit out of the
> install at the first opportunity. Mount the old / directory
> somewhere, edit the shadow file by hand. reboot.

> --
> -Andy M
> http://synecdoche.net/~andy

> Sent via Deja.com http://www.deja.com/
> Before you buy.

 
 
 

Forgive me Gurus but I've f**ked up big time HELP HELP HELP!

Post by arthur_.. » Tue, 04 Jul 2000 04:00:00


There is a thread in comp.unix.solaris
with title "Password Cracking in Sol 8" msg #7
=====quote===========


 << previous in thread    next in thread >>

If you can do a stop-A (if you can get to the box via serial port,
through a terminal server or whatever), try this hack.

Steve


F S  UID  PID  PPID  C PRI NI    ADDR    SZ    WCHAN TTY      TIME CMD
8 S  108  4663  4658  0  51 20 f60e9b88    383 f69e8bf8 pts/10  0:00
ksh

Find the address of the "cred" structure (24 bytes from start of
process) :-


f592a908

Set the effective user found at this memory address to zero :-

ok hex 0 f592a908 4 + l!
ok go

Done, check our effective user now :-

uid=108(xxxx) gid=30(sysadmin)  euid=0(root)
==========UNquote===============

Will this also work for 5.4?
He has access to the machine !
/Arthur



> I dont see anything really wrong in what you did :) It is very common,
> even big gurus' also do that. But do realize when you touch passwd
> command or file, before logging out, if you can return back or not.
> Anyway, as Andy suggested, shut it down ( STOP-A, boot cdrom) and boot
> from cdrom. during installation, right click on Openwindow desktop
area
> and open a Terminal.
> Check if your root disk is mounted or not. If not ( you must know
which
> is your root disk, if you have more than one disk ), mount
> /dev/dsk/cxtxdxsx /mnt
> and vi /mnt/etc/shadow
> locate the root entry and change the Seconds column to NP ( no
password
> ). Or whatever is appropriate to SunOS5.4.
> Save the file, unmount the /mnt filesystem, reboot you must be all
set.
> Keep backups of passwd and shadow files whenever you are doing such
> changes in future.

> Gopi.



> > OK I have really gone & done it!

> > I was using an old Sun box we have in the office,
> > for which we have a root user and a root
> > password, but that's about it.

> > OK thought I, I'll just make myself a new user so
> > I did, I used USERADD which then told me to run a
> > password updating utility, I think called PASSUPD
> > or maybe PASSCONV but I didn't write it down. The
> > app ran, no problem and, with no comments

> Sent via Deja.com http://www.deja.com/
> Before you buy.

Sent via Deja.com http://www.deja.com/
Before you buy.
 
 
 

Forgive me Gurus but I've f**ked up big time HELP HELP HELP!

Post by Jayn » Tue, 04 Jul 2000 04:00:00



> Ah, but that assumes I have the CD-ROM!!! This box is so old noone knows
> where the CDROM is.

> I have access to another one of these boxes (if they let me touch it!!)
> which apparently provides Network Information Services to the broken
> box. We tried making the password files and pushing them down to the
> broken box but it didn't seem to make any difference.

YP won't propagate the root password.

However, as a last resort, you could physically remove the hard drive,
change its ID and attach it to your other Sparc box, mount it somewhere
suitable and hand-edit the password/shadow files.

Or, if the machine is really old, try a 'L1-A' followed by 'boot -s'
which
might get you in as root in single-user mode. Again edit the password
file, then reboot.

Jayne.

 
 
 

Forgive me Gurus but I've f**ked up big time HELP HELP HELP!

Post by woknes » Wed, 05 Jul 2000 04:00:00


You you just typed passwd and put in a new password right? That means that
you changed roots password. So then all you sould have to do is login as
root, with the password you created for your new user, then type passwd
again,  set it to what it was before.

hope this helps,
wokness


>OK I have really gone & done it!

>I was using an old Sun box we have in the office,
>for which we have a root user and a root
>password, but that's about it.

>OK thought I, I'll just make myself a new user so
>I did, I used USERADD which then told me to run a
>password updating utility, I think called PASSUPD
>or maybe PASSCONV but I didn't write it down. The
>app ran, no problem and, with no comments
>returned me to the shell prompt. So I set up my
>password for my new user, crossed my fingers and
>logged out.

>STUPID STUPID STUPID!

>Now when I try to log in as root with the root
>password it won't let me in. I can get in as my
>new user but with hardly any access rights.

>What gives? What have I done? How on earth did
>the root password change without it telling me?
>What sort of an OS changes root
>password "invisibly". Aargh. I need to get this
>machine back and running by the end of today and
>I haven't a clue how to.

>Anyone, anywhere? Any ideas? Any hints? PLEASE
>PLEASE PLEASE!

>BTW I'm using SunOS 5.4 on a SUN Sparcstation 20

>OK, laugh...go on...laugh. Damn Damn damn

>Jeremy

>Sent via Deja.com http://www.deja.com/
>Before you buy.

 
 
 

Forgive me Gurus but I've f**ked up big time HELP HELP HELP!

Post by Lutz » Wed, 05 Jul 2000 04:00:00



> STUPID STUPID STUPID!

> Now when I try to log in as root with the root
> password it won't let me in. I can get in as my
> new user but with hardly any access rights.

  Start off booting from CD, mount that slice with
  /etc/passwd on and get rid of the root PW, reboot.

  else

    install new

lutz

 
 
 

Forgive me Gurus but I've f**ked up big time HELP HELP HELP!

Post by Andy » Thu, 06 Jul 2000 04:00:00





> > I have access to another one of these boxes (if they let me touch
it!!)
> > which apparently provides Network Information Services to the broken
> > box. We tried making the password files and pushing them down to the
> > broken box but it didn't seem to make any difference.

> YP won't propagate the root password.

right, because the root user is a LOCAL account, but Jem could always
make a NIS account with ID == 0, push it out, then log into his messed-
up box as that user and fix the damage.

--
-Andy M
http://synecdoche.net/~andy

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Forgive me Gurus but I've f**ked up big time HELP HELP HELP!

Post by roo » Sun, 09 Jul 2000 04:00:00


No CDROM? OK, then boot from the tape. hehe

>Ah, but that assumes I have the CD-ROM!!! This box is so old noone knows
>where the CDROM is.

>I have access to another one of these boxes (if they let me touch it!!)
>which apparently provides Network Information Services to the broken
>box. We tried making the password files and pushing them down to the
>broken box but it didn't seem to make any difference.

>Is it possible to create a boot floppy on the working box that can mount
>up the SCSI drives in the broken box and thus allow me to access the
>pasword files??

>Jeremy


>says...


>> > OK I have really gone & done it!

>> > I was using an old Sun box we have in the office,
>> > for which we have a root user and a root
>> > password, but that's about it.

>> > OK thought I, I'll just make myself a new user so
>> > I did, I used USERADD which then told me to run a
>> > password updating utility, I think called PASSUPD
>> > or maybe PASSCONV but I didn't write it down. The
>> > app ran, no problem and, with no comments
>> > returned me to the shell prompt. So I set up my
>> > password for my new user, crossed my fingers and
>> > logged out.

>> > STUPID STUPID STUPID!

>> > Now when I try to log in as root with the root
>> > password it won't let me in. I can get in as my
>> > new user but with hardly any access rights.

>> *IF* you can shut it down, boot from cdrom and exit out of the
>> install at the first opportunity. Mount the old / directory
>> somewhere, edit the shadow file by hand. reboot.

>> --
>> -Andy M
>> http://synecdoche.net/~andy

>> Sent via Deja.com http://www.deja.com/
>> Before you buy.

 
 
 

1. I've got a BIG problem... pls help

It is really a big problem....

I am writing my final year project using Motif and C under Solaris and
it should work at home with Linux too I hope...

But the progarm is now ok at Solaris, but core dump at my Linux 2.0.17
with gcc 2.7.

Following is my procedure...
1) I make a pointer to a structure which have some strings and some other
structure pointer inside. I fill up all the field under a procedure using
strdup.

2) I run a procedure to free all resources like memory for pointer.

3) Then I run step 1) again. Core dump....

No problem at Solaris at university. I can create and destroy 100 times
at Solaris without any problem. The core dump is not out at the 1st
strdup under the creation routine... One of my testing program dump at
the 3rd one and one dump at the 6th one.

What's wrong.... It true to me and I am not telling lies. Pls help.

--
---
Bestregards
Louis Chan

   /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
  /_/  Louis Chan, Kwong Kit                                      /_/_
 /_/_/ Computer Studies, Year 4                                  /_/_/
  /_/  City Univerity of Hong Kong.                               /_/
 /_/                                                             /_/
  /_/                        http://www.cs.cityu.edu.hk/~ckkchan  /_/

  /_/                      pager : +(852)7111 1076 a/c 4624       /_/
 /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
                                            Printed on Recycled Paper.

2. Linksys EC2T Ethernet PCMCIA Linux problem

3. HELP HELP HELP HELP HELP HELP

4. offtopic

5. help help help help help help

6. Does Oracle Developer 1.61 run on AIX 5.1?

7. Gurus...Unix serial-port, time-slice and timing help

8. shutdown problem with redhat 5.0

9. Shape Ups,Men's Shape Ups,Men's Skechers Shape Ups - new styles!

10. Xaw scrollbars within dialog box widgets HELP:HELP:HELP:HELP:HELP:

11. HELP HELP LINUX PPP GURUS / ANYONE with similar experience

12. Need help with 'time' C Run-Time Library functions under HP-UX

13. HELP HELP HELP....i'm becoming creazy...!