How many instances of "/" are there in:
Q: Obtaining root access to linux machines 
Possible Duplicate:
Lost Root and other user passwords 

I have a number of linux machines (debian and ubuntu) left from a former system administrator. There's no way to find out root passwords on those computers. How do I get root access without reinstalling linuxes?

A: You can reboot with inserting init=/bin/bash into the kernel parameters.
It will bring you a very simple system, which is not functioning at most, but you can still:
mount -o remount,rw /
passwd root
mount -o remount,ro /
reboot

In case even the boot loader is not capable to provide you CLI (eg lilo) or it's been restricted (password protected grub), you have to get a live cd, mount the drive, mount the root partition by hand, reset the password and reboot the system. 
I am sure a lot of persons will advise getting a boot cd, so that part is not a problem.
You can always choose System Rescue CD for this (http://www.sysresccd.org/Main_Page)

A: Dedian and Ubuntu block the old "single user boot" method as this requires the root password too the way these distributions are configured.
If you have a user that has wide root privileges via sudo you might be able to set the passord with sudo passwd root though access to passwd like that is usually looked out in sudo configurations.
You other option is to boot from a live CD and reset the password from there. The process goes something like:


*

*boot from live CD, preferably one from the same distro that you are currenty using (though any should work)

*make sure you are logged in to the LiveCD setup as root

*mount your old root partition with mkdir /mnt/realroot then mount /dev/whererealrootis /mnt/oldroot - extra steps may be needed if you use RAID or LVM and the arrays/volumes are not detected automatically by the LiveCD.

*use chroot /mnt/realroot /bin/bash to create a shell that uses the machines usual root partition instead of its own

*change the password with passwd - the chroot step above means the "real" password will be changed, not the one on the LiveCD's setup

*you can now reboot and login as usual (if you are paranoid, exit out of the chroot shell and run sync and umount /mnt/realroot first.


There are also ways to blank the password manually (again, from a LiveCD) but using the chroot method is a little safer IMO.

A: Looks like it can be done but you will need to boot into single user mode. Further instructions can be found here

A: Let me Google that for you. 
http://www.google.de/search?q=reset+root+password+linux
First link nicely explains all the options. I would go for #2, which is "boot a Live Linux CD, mount your disk, edit the password file". 

user
I counted twenty-three "/"s in that text.
assistant