Accessing the Root Account on the gPC/gOS
One of the first things you will probably want to do upon boot up is to lock down the root account. By default, the root account does not have a password, which means anyone with access to the default gOS account can quickly gain full control over the operating system and essentially do anything they want. In order to prevent this, you have to set the root password to something you can remember. To do this, click the green leaf in the corner, select "Run Command" and type in "xterm." This should load a terminal window similar to Figure 8. Once the window opens, type "sudo password root." The computer will prompt you for the current account password, after which it will ask to "Enter new UNIX password." Type in the password you wish to assign to the root account and enter the same password again for a confirmation. Congratulations — you now locked down the root account.
Figure 8: xterm
Unfortunately, the system is still insecure because anyone can enter what is called "single user" mode during the boot up process and change the root password. So, to prevent this, we need to password protect the program responsible for booting the operating system, grub. To do this, perform the following:
- In terminal window, type su root.
- Type in the recently created root password.
- Type "grub" to access grub program.
- Type md5crypt, then enter in your grub password (it can be the same as your root account password).
- Record the returned results (Figure 8).
- Type "quit."
- Type "pico /boot/grub/menu.lst."
- Scroll down to password part of the file and enter the following "password --md5 <your copied down password hash>."
- Hit the Ctrl-O followed by Ctrl-X to save and exit the pico text editor.
At this point your machine is fairly secure. There are other ways to gain access to the root account, but these are beyond the scope of this article.