On Friday 14 September 2001 1:33 pm, James Oakley wrote:
On September 13, 2001 05:56 pm, Martin Webster wrote:
On Thursday 13 September 2001 8:02 am, Gabriele Biondo wrote:
Dear sirs month ago i read that there is a way to gain the root privileges' over a linux box - with a little trick. Now, i do not remember that trick, but one of our sysadmins left the company and he doesn't want to give back that password. Is there anyone that knows that little trick? Is there anyone that knows how to configure lilo to protect from that trick?
That would be great, it would save me the time to search among lotsa articles.
SuSE has a Rescue System on CD 1, in which you can boot and log in as root without a password. Thus:
1. Boot the machine. 2. Type: linux init=/bin/sh rw 4. Type: mount /usr 5. Change your root password using: passwd 6. Type: sync; sync; sync 7. Type: umount /usr 8. Remount the root filesystem (readonly this time): mount -o remount,ro / 9. Finally, type: exec /sbin/init 6
Unfortunately, I can't do this on my system since I'm using LVM and mount /usr won't work. Any ideas?
I learned how to do this a while ago on my Alpha box. Knowing that I'll never remember the process, I stuck it in my Wiki:
Thanks for that. Unfortunately, I found out the hard way. I'll check my mail first next time. ;-) M