> Hi again,
>
> somebody of my so called collegues changed the root-password, so I cannot
> get into the system. Is there a possibility for me to change the
> root-password or do I have to reinstall?
>
> I am using a 2.4 kernel. Oh, there is no ftp access to the system....
I know how to do it on my system, but I suspect it's different on a mainframe;-()
There's probably an easier way (there is for Linux on IA32).
If you can access the volume from another Linux system then you can edit
/etc/passwd so the root entry looks like this:
root::0:0:root:/root:/bin/bash
For this purpose 'another system' is anything (maybe your install system, maybe
a small system you keep for repairing other systems) that gives you a shell
prompt.
I assume you're using openssh? Create yourself a key with ssh-keygen and add it
to /root/.ssh/authorized_keys or /root/.ssh/authorized_keys2 according to the
kind of key you have.
Then you can get to root without a password:
summer@numbat summer]$ root
Last login: Mon May 13 06:23:59 2002 from localhost
[root@numbat root]# cd .ssh/
[root@numbat .ssh]# ll
total 16
-rw-r--r-- 1 root root 603 Dec 31 23:19 authorized_keys2
-rw------- 1 root root 668 Jan 7 09:16 id_dsa
-rw-r--r-- 1 root root 601 Jan 7 09:16 id_dsa.pub
-rw-r--r-- 1 root root 686 Feb 21 10:53 known_hosts2
[root@numbat .ssh]#
root is a shell function I defined:
root ()
{
RH=$1;
shift;
[ -z "$RH" ] && RH=127.0.0.1;
ssh -t -l root $RH $@;
return $?
}
--
Cheers
John Summerfield
Microsoft's most solid OS: http://www.geocities.com/rcwoolley/
Note: mail delivered to me is deemed to be intended for me, for my disposition.
==============================
If you don't like being told you're wrong,
be right!