Difference between revisions of "Working Without a Password"
Line 14: | Line 14: | ||
===Ubuntu 10.04 === | ===Ubuntu 10.04 === | ||
− | + | The two that you're looking for are '''networking''' and '''root'''. Netroot will set up networking on the machine, and then drop you to a root shell with the disk mounted read write . root will just drop you to a root shell without any further setup. In Ubuntu 12.04 the root shell mounts the hard drive read-only. | |
To mount a disk read write use the following command | To mount a disk read write use the following command | ||
Line 27: | Line 27: | ||
'''N.B. You should not use this to reset a user's password, unless absolutely necessary (i.e they have forgotten it and need it resetting) and never for routine work. The rootshell gives you all the privileges you need. If you need to test something in an ordinary users environment create a new user then delete it when you have finished.''' | '''N.B. You should not use this to reset a user's password, unless absolutely necessary (i.e they have forgotten it and need it resetting) and never for routine work. The rootshell gives you all the privileges you need. If you need to test something in an ordinary users environment create a new user then delete it when you have finished.''' | ||
− | |||
===Altering the Grub Timeout=== | ===Altering the Grub Timeout=== |
Revision as of 15:13, 28 December 2012
You should not need a customer's username and password to do most of the work in Tech Support.
- start the computer booting up, and hold down the right shift key.
- After a few (or 10 or 20) seconds you will see the grub menu, which is characterized by a line or lines that will say ...kernel 2.6... If you can't get to this see #Altering the Grub Timeout below
- Hit the down arrow once to get to a line that ends with recovery mode and press enter.
- This will bring up a menu with many options.
Ubuntu 10.04
The two that you're looking for are netroot and root. Netroot will set up networking on the machine, and then drop you to a root shell. root will just drop you to a root shell without any further setup.
- Type startx and you will be logged into a desktop environment.
N.B. You should not use this to reset a user's password, unless absolutely necessary (i.e they have forgotten it and need it resetting) and never for routine work. The rootshell gives you all the privileges you need. If you need to test something in an ordinary users environment create a new user then delete it when you have finished.
Ubuntu 10.04
The two that you're looking for are networking and root. Netroot will set up networking on the machine, and then drop you to a root shell with the disk mounted read write . root will just drop you to a root shell without any further setup. In Ubuntu 12.04 the root shell mounts the hard drive read-only.
To mount a disk read write use the following command
mount -o,remount,rw /dev/mapper/freeegeek-root
on a normal Free Geek install otherwise try:
mount -o,remount,rw /dev/sda1 etc
- Type startx and you will be logged into a desktop environment.
N.B. You should not use this to reset a user's password, unless absolutely necessary (i.e they have forgotten it and need it resetting) and never for routine work. The rootshell gives you all the privileges you need. If you need to test something in an ordinary users environment create a new user then delete it when you have finished.
Altering the Grub Timeout
Ubuntu uses Grub2 which has a configuration option to set the amount of time you have to press the shift key to get to the grub menu. If you find it difficult to get to this menu you can use a rescue disk to increase the amount of time you have.
- Boot off of a rescue disk. On the Free Geek build network (i.e. in Tech Support) you can net boot then chose the live boot option -> Debian Images-> Debian Rescue.
- Once it has booted use Sudo fdisk -l to find the hard drive of the machine you are booting: norma.lly it is /dev/sda1, the first partition on the drive.
- Mount that drive: sudo mount /dev/sdXX /mnt e.g. sudo mount /dev/sda1 /mnt
- next you will need to mount the virtual filesystems: for i in /dev /dev/pts /proc /sys; do sudo mount -B $i /mnt$i; done
- Then chroot into that filesystem chroot /mnt
- Now you can edit the relevant grub config file. With grub2 this is /etc/default/grub
- Look for a line that begins GRUB_HIDDEN_TIMEOUT=, amke sure it isn't commented out with a #
- Edit this line to give a reasonable amount of time. GRUB_HIDDEN_TIMEOUT=3 (a 3 second delay).
- Run sudo update-grub so grub knows about the changes.
- Exit chroot exit
- Unmount the virtual filesystems: for i in /sys /proc /dev/pts /dev; do sudo umount /mnt$i; done
- Unmount the hard drive sudo umount /dev/sdXX e.g. sudo umount /dev/sda1
- reboot the system and boot normally.