Root password Recovery SUN,AIX, LINUX(Redhat) and HP-UX

I am trying  to cover   the password file information and root password recovery . It is not the task of DBA but sometimes the knowledge of Unix administration task help us to do the activities in effective manner .

Password file information of root :-

Operating system Sun Solaris :-  /etc/passwd and /etc/shadow  

Operating system AIX :- /etc/passwd and /etc/passwd/security

Operating System Linux :- /etc/passwd and /etc/shadow

Operating System HP-UX :- /etc/passwd and /tcb/files/auth/r/root

Being a DBA we need to have good idea about unix important files .

Sun Solaris :-

boot cdrom -s

mkdir /tmp/a

mount the cd using mount /dev/<Device>    /tmp/a

vi /tmp/a/etc/shadow

AIX

boot from cdrom or tape installation/Mantienance

start limited shell

getrootfs hd1sk0

vi /etc/security/passwd

Linux

If it LILO (Linux  Loader) its a bootstrap program  then we have  the follow the below steps :-

lilo

Control -x

linux  s

passwd root

If it GRUB (Grans Unified Bootloader) then

grub

c

kernel vmlinuz-2.4.9-13 single  ro root=/dev/hda8 initrd  /initrd-2.4.9-13.img boot

passwd root

HP-UX

boot interact with ipl ? Y

isl->hpux- iS

passwd root

Out of all the  above opertaing system steps , i personally tried  Linux (LILO) and it worked

About the Author Rajat

I am Rajat Dey and I have more than decade of Oracle experience from all major regions throughout the globe. I am well versed in most facets of Oracle, supporting database, fusion middleware and the eBusiness suite across many operating system platforms.Currently I am located in Sydney  Oracle Financials 11i and Release 12,12.2  Oracle RDBMS 7x,8i , 9i,10g and 11g  Amazon cloud .  Oracle RAC 10g and 11g  Oracle Applications Server  Oracle Web logic Server  OBIEE  Hyperion  SSO  Oracle Portal  PL/SQL  UNIX  SQL  MS-SQL 2008.  OEM 12c .  Data Guard .  Essbase .  Database backup and recovery.  Performance Tunning.  TimeSten

Leave a Comment:

Not found