HELP!! HELP!! NO UID 0

HELP!! HELP!! NO UID 0

Post by Brey Glenn » Tue, 17 Mar 1998 04:00:00



  Need Imediate help! Passwd file line with UID=0 is gone. How can I
re-create this entry without being able to log in as root???? All
process the use root equiv. are useless.
  Thank in advance for your quick responces.

  Brett G

                    Brey G
    Over The Mountains and Through The Hills
          To Grandmothers House I Jeep

 
 
 

HELP!! HELP!! NO UID 0

Post by Frank Slootw » Wed, 18 Mar 1998 04:00:00


  See the thread "Recover Root Passwd" in this group.

  In general: If this is for post-9.X see the hpux(1M) manual page. If
this is for pre-10.X, see the hpux_700(1M) or the hpux_800(1M) manual
page.

 
 
 

HELP!! HELP!! NO UID 0

Post by Mario Starga » Thu, 19 Mar 1998 04:00:00



cost the 'net hundreds, if not thousands of dollars to say:

>  Need Imediate help! Passwd file line with UID=0 is gone. How can I
>re-create this entry without being able to log in as root???? All
>process the use root equiv. are useless.
>  Thank in advance for your quick responces.

>  Brett G

>                    Brey G
>    Over The Mountains and Through The Hills
>          To Grandmothers House I Jeep

        You do not mention what version of HP-UX you are running or if
you have a logical volume manager.  LVM will certainly complicate
things for repair when booting from the install media.  Here is the
procedure to follow after you run a recovery shell off of the install
media in HP-UX 10.x running LVM to mount a volume:

cd /dev
mkdir vg00
cd vg00
mknod group c 64 0x000000
loadfile /sbin/pvcreate
loadfile /sbin/vgimport
/sbin/vgimport /dev/vg00 /dev/dsk/c0t?d0
loadfile /sbin/vgchange
/sbin/vgchange -a y /dev/vg00
loadfile /sbin/mount
loadfile /sbin/fs/hfs/mount
cd /
mkdir /mnt
/sbin/mount /dev/vg00/lvol3 /mnt
/sbin/mount /dev/vg00/lvol7 /mnt/usr

        Which will give you the root and /usr filesystems.

        Cheers,
                Mario

--
Mario Stargard, Systems Admin   |  "Security for an OPEN World"
Product Development Group       |  Network security solutions for
SAGUS Security Incorporated     |   the enterprise.
(613) 234 7300 x214             |  http://www.sagus-security.com

 
 
 

1. hp(x)term -e elm uid help needed

Here's an elm spawned on an hpterm window - problem.  I get the same
(bad) results using an xterm.  In all cases, I'm running /bin/ksh.

case a)
hpterm -e elm testuser

case b)
hpterm
and then in the hpterm:
elm testuser

The above cases a & b seem as though they should have very similar
results.  They don't.  Case b will successfully send email to testuser,
while case a will not.  Looking in /usr/spool/mqueue/syslog:

case a syslog entry:
Apr 11 12:12:01 testuser sendmail[2333]: AA02333: from=user1, size=107,
class=0

case b syslog entry:
Apr 11 12:14:22 testuser sendmail[4246]: AA04246: from=user1, size=107,
class=0
Apr 11 12:14:23 testuser sendmail[4248]: AA04246: to=testuser, delay=00:00:01,
stat=Sent, mailer=local

In both cases the messages show up in the sending user's savemail folder.

I need a one line command or a shell script to spawn elm with a terminal
window including a mailing address (and have it actually work).  This
sequence should create the window, ask for Subject line, spawn the users
editor, and send the email.  Can anyone offer any ideas?  I've tried
'hpterm -e ksh -c "elm testuser"'.  I've tried various combinations
calling shell scripts via the -e arguement to no avail.

Please help!  I'm stuck.

Thanks!

Robb

2. what's up wit dat?

3. Help, Help, Help !!!

4. head cleaining - how much ink does it use? (Epson 700)

5. HeLP hElP HElP *pleeeease*

6. Irwin tape drive

7. help me reset my aptrex c3252a ! help!

8. How do I set disk cache for cd-rom under ntserver?

9. Help about help files/DOcs about EMC

10. HP Laserjet 4000N : Help ! Help !

11. root user password prob. HELP!!HELP!!

12. HELP HP870Cxi HELP

13. Help! Help!