Hi again all,
First a little background that will hopefully provide some insight.
I had to do a totally unexpected restore of my 9.04 64-bit installation. The system had been rendered unbootable (corrupted MBR and grub) but I was still able to access all of the files. So I booted a copy of Puppy Linux off of a USB flash drive and copied all of the files on the partition to a separate drive using Puppy's ROX file manager. Just for good measure I also tar'd up an archive of all the files to the second HD as well.
I had been wanting to increase the size of my Ubuntu partition but wasn't able to just expand it with gparted and then rewrite the MBR and reinstall grub. That's because I had a bunch of old partitions laying around both before and after my Ubuntu partition and there was no way to merge all of the unallocated space and grow the Ubuntu partition to fill it. So since I had all of my files backed up I deleted all partitions except sda1 which holds a minimal install of Win Vista. That allowed consolidation of all the free space into one big unallocated chunk. I then did a fresh install from the Live CD which set up the main Ubuntu and swap partitions, rewrote the MBR and gave me back a good grub. Then I simply copied all of the backed-up files from the second HD to the new installation. That way I wouldn't have to do any updating, configuring, tweaking, etc. to get my system back exactly as it was prior to the catastrophe. I know that's probably not the 'normal' way to do things but it seemed like a reasonable alternative to spending dozens of hours rebuilding from scratch.
Upon booting the newly restored system, at the login prompt I got an error dialog stating, in part: "User's $HOME/.dmrc file is being ignored... The file should be owned by user and have 644 permissions. User's $HOME directory must be owned by user..."
That was easy enough to track down. I booted into recovery mode and issued the following commands:
Code:
chmod 644 /home/tgeer/.dmrc
chown tgeer /home/tgeer/.dmrc
chmod 700 -R /home/tgeer
chown -R tgeer /home/tgeer
Seems like the first two command are overridden by the second two but that's the instructions that I found and they worked. The system then booted normally - or so it seemed. Now to the crux of the problem. It seems there are still some permission/ownership issues and other, possibly related woes. Here's what I have done and observed since doing the above:
* Sudo commands in the terminal were producing the error: "sudo: must be setuid root". Again I booted into recovery mode and issued the following commands:
Code:
chmod 4755 /usr/bin/sudo
chmod 4755 /bin/su
Then I started getting this: "sudo: /etc/sudoers is mode 0777. Should be 0440". Back to recovery mode to issue:
Code:
chmod 0440 /etc/sudoers
This resurrected sudo and I have all superuser priveleges back now.
* My command prompt is now: tgeer@localhost instead of: tgeer@tgeer. The system was labeled 'tgeer' at installation time and my username is 'tgeer'. Entering superuser mode with 'sudo -s' gets me: root@localhost BUT my recovery mode prompt is correct: root@tgeer. Hmmm...
* No internet connection and no network manager icon/applet in the panel. My connection is normally initiated via /etc/rc.local with the following code:
Code:
ifconfig wlan0 up
iwconfig wlan0 mode managed
iwconfig wlan0 essid 08FX02002785
iwconfig wlan0 key open XXXXXXXXXX (my WPA key goes here)
dhcpcd -d wlan0
When I issue these commands manually in the console with sudo, the lines all execute cleanly except the last one which produces this error: "The program dhcpcd is currently not installed. You can install it by typing: apt-get install dhcpcd". But it IS installed and in fact if I boot into recovery mode with networking, DHCPCDiscovery runs and attempts to connect but fails. Besides, how would I apt-get install it without an internet connection anyway?
* No sound. Volume control icon in the panel has a red 'X' on it and trying to access it gives the following error: "No volume control GStreamer plugins and/or devices found". Something else that I tried with the sound (might have been alsa-mixer) gave me an error message saying something about the possibility of the sound card not being configured. Just like everything else here, this worked just fine previously and my sound device settings in System->Preferences->Sound all look OK but the test buttons no longer produce a tone.
* The preferences for the clock applet in the panel have the option to change the time greyed out. Actually this might be fixed after getting sudo working again. I haven't checked it since then.
* When browsing the filesystem with nautilus, I am seeing a number of files and folders with the red 'X' emblem. Not the whole icon, just the red 'X' emblem superimposed in the upper-right of the actual icon. This is supposed to indicate 'unreadable' but the files/folders are indeed readable and if I right-click one of them and choose properties then go to the emblems tab, the unreadable emblem is not selected (nor is any other).
I know it sounds like a huge furball but I have a suspicion that it's all related and still has something to do with permissions/ownerships. I just don't know where to go from here. I'm hoping you folks who have helped me so much in the past will have some ideas. Hell, maybe it's something painfully obvious but not to me. I've only got about one year with Linux under my belt. The only thing I can think of is that copying the files back and forth with Puppy Linux and ROX did not preserve the file permissions and/or ownerships. Maybe I'd have better luck untarring the archived backup back over the top of everything?
Phew - I'm getting cauliflower fingers.
Thanks in advance for any ideas or suggestions you may have.
tgeer
Bookmarks