Originally Posted by
Vibin Lakshman
No I cant enter my root shell , its showing err
sudo:must be setuid root
What to do ? I cant do it in recovery mode too
Whoops.
Did you try to move this stuff to a FAT32 or NTFS drive? It's acting like all the permissions are wrong. You didn't explain clearly what you were trying to do, nor what you did do...
Boot from a LiveCD in "Try it" mode.
Open a terminal window.
Type in: One of the listed partions will be "ext3". Make note of the device. We'll assume that was "/dev/sda2", but use the correct one...
Code:
sudo mount /dev/sda2 /mnt -text3
ls -l /mnt/usr/bin/sudo
*should* look like:
Code:
-rwsr-xr-x 2 root root 143656 2009-06-22 12:15 /usr/bin/sudo
If the mode and ownership don't match that, you need to backup your data and reinstall Ubuntu.
Do you have a Windows partition? The fdisk command above will have displayed which device that is. Let's assume it was /dev/sda1 and that it's really big.
Code:
sudo mkdir /mnt2
sudo mount /dev/sda1 /mnt2 -tntfs
cd /mnt
tar cjf /mnt2/emerg-backup.tar.bz2 home
That'll take awhile, but you'll have a backup.
Now, reinstall Ubuntu.
Then open a terminal window and mount that Windows partition with the backup on it, and restore the backup:
Code:
sudo mount /dev/sda1 /mnt -tntfs
cd /
sudo tar xjf /mnt/emerg-backup.tar.bz2
sudo chown -R $LOGNAME:$LOGNAME $HOME
That will put you close to where you were...
Bookmarks