Skip to content

Getting back to your root… account

My roommate, who is a sysadmin, hosed the root account by accident on a Solaris machine. He edited the passwd file and somehow bolloxed up the root account, which now has no shell. Root is the only user account. Given that root has no shell specified, there is no way to log in to the machine to fix the problem.

Naturally, there are ways to fix this, the easiest we thought of being to pull the drive and edit the file on another box. Fixing the problem has become less of an issue, but the process of working on the problem has raised an interesting academic question: If root has no shell, how does one get into the box?

We started discussing the potential of this as an intentional security measure. Remote root shell exploits would not give you a shell, since there is no shell specified to run. You would have to attack it with some kind of priviledge escalation, but if there are no other user accounts to login with…? Could this be a way to lock down a box? Certainly inconvenient for administration.

The plan is to bring home this box once it is no longer in use, set up this scenario again (if it is repaired), and then hack the gibson. Should be a fun and very educational project.

Enabling compiz-fusion in Gutsy Ubuntu 7.10 with an ATI x700

I installed Ubuntu 7.10 - Gutsy, and just got compiz-fusion to work. It was not difficult, but finding the information to do it was a minor challenge as Gutsy is so new. I have copied and slightly modified what I found on this blog. Without further ado, here are the directions that worked for me.

To enable Compiz-fusion on ATI for Ubuntu Gutsy Gibbon 7.10:

1. Install ATI driver through restricted driver manager (System - Administration - Restricted Driver Manager), if it’s not installed already. Reboot the system. Go to System - Preferences - Apperances. Go to Desktop Effects tab and select Normal or Extra. When I selected Normal or Extra, I got an error saying Composite extension is not installed (or something similar to that effect). If you get that message, proceed below.

2. Install fglrx by searching for fglrx in Synaptic Package Manger (System - Administration - Synaptic Package Manager) and install xorg-driver-fglrx.

3. Edit the xorg config file. Run this command in a terminal: sudo gedit /etc/X11/xorg.conf

Add the following to xorg.conf if it’s not there, after your video card definition:

Section "DRI"
    Mode 0666
EndSection

Find the section containing:

Section "Extensions"
    Option "Composite" "0"
EndSection

Change it to:

Section "Extensions"
    Option "Composite" "Enable"
EndSection

4. Install XGL. Search Synaptic Package Manger for xserver-xgl.

5. Install D-Bus. Search Synaptic Package Manger for dbus-x11.

6. Reboot and try the Desktop effects again, it should work. Apparently, you used to have to edit some startup scripts to start an XGL xorg session, but it seems that was taken care of in the release version of Gutsy.

Hope you found this helpful. Drop me a note if you did, so I can see if anyone’s reading this! Thanks!

This is a test

To see if the spam bots are still getting through. *sigh*