Results 1 to 6 of 6

Thread: I am now unable to `su -' from user knoppix.

Hybrid View

  1. #1
    Junior Member registered user
    Join Date
    Mar 2004
    Posts
    15

    I am now unable to `su -' from user knoppix.

    So, I'm trying different things to fix my grub installation and I managed to make my knoppix and windows 2k unbootable.

    That was a fine time to discover that I had an incomplete burn of the knoppix CD (I must have given away the good burn I made). So the computer was basically hosed.

    First I booted from my win2k installation CD and issued a fixmbr from the recovery console, which got my windows back. And I tried to revocer my knoppix from the broken CD. Bad idea.

    When I finally got another good burn made and got my knoppix working again I found that I could no loger successfully su to root while logged in as knoppix. I can still log-in as root.

    Also, none of the KDE popup windows that prompt for the root password succeed either, and the checkbox to "keep password" is now missing (like when I try to change the time, or some other root level activity).

    I figure that this is a permissions issue, since somehow in the above process all the files on my system managed to get owned by knoppix:knoppix instead of root.

    I chowned root:root everything but /home/knoppix. That hasn't helped though. Is there a fix permissions script somewhere that I can use to get this thing working correctly?

    Thanks in advance,
    --Robert

  2. #2
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041

    Re: I am now unable to `su -' from user knoppix.

    --Yikes. Once you get global permissions screwed up, you have basically 2 choices:

    1. Restore from a backup

    2. Reinstall

    --Otherwise you'll NEVER get things 100% back to the way they "should" be. Different things in /etc have to be owned by the proper IDs, or they don't work right.

    --Trust me on this. Reinstalling in this case is much quicker and less painful than trying to fix permissions for TENS OF THOUSANDS of files.

    Quote Originally Posted by rbivins
    So, I'm trying different things to fix my grub installation and I managed to make my knoppix and windows 2k unbootable.

    That was a fine time to discover that I had an incomplete burn of the knoppix CD (I must have given away the good burn I made). So the computer was basically hosed.

    First I booted from my win2k installation CD and issued a fixmbr from the recovery console, which got my windows back. And I tried to revocer my knoppix from the broken CD. Bad idea.

    When I finally got another good burn made and got my knoppix working again I found that I could no loger successfully su to root while logged in as knoppix. I can still log-in as root.

    Also, none of the KDE popup windows that prompt for the root password succeed either, and the checkbox to "keep password" is now missing (like when I try to change the time, or some other root level activity).

    I figure that this is a permissions issue, since somehow in the above process all the files on my system managed to get owned by knoppix:knoppix instead of root.

    I chowned root:root everything but /home/knoppix. That hasn't helped though. Is there a fix permissions script somewhere that I can use to get this thing working correctly?

    Thanks in advance,
    --Robert

  3. #3
    Junior Member registered user
    Join Date
    Mar 2004
    Posts
    15

    Re: I am now unable to `su -' from user knoppix.

    Quote Originally Posted by Dave_Bechtel
    --Yikes. Once you get global permissions screwed up, you have basically 2 choices:

    1. Restore from a backup

    2. Reinstall

    --Otherwise you'll NEVER get things 100% back to the way they "should" be. Different things in /etc have to be owned by the proper IDs, or they don't work right.

    --Trust me on this. Reinstalling in this case is much quicker and less painful than trying to fix permissions for TENS OF THOUSANDS of files.

    YIKES! Indeed!

    Is there a way to re-install that doesn't blow away all the settings that I've spent hours setting? Not to mention all the apps I've installed since then.

    Hmmm . . . not good.

    Or, can I just pull all the /etc, /opt, /bin, /lib, /sbin, and /var from the CD or something?

    Thanks,
    --Robert

  4. #4
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041

    Re: I am now unable to `su -' from user knoppix.

    --I wouldn't mess around with it too much, if you don't want a subtly-broken system.

    --If you want, you could tar up /etc and your /home dir somewhere and then run a 'diff' on the files afterward. But really, there's no easy way around it - even if you do that, you'll spend hours hand-editing things anyway.

    --The only "good" way that I know of to recover fully from a situation like this, is to reinstall... Then BACKUP frequently. Backup when you have it running the way you like it; backup (at least partially) again when you tweak something and get good results; backup *yet again* right before you do apt-get upgrade or delete packages. And by all means, at **least** do a *weekly* full backup. (Sunday nights are good for this, as a suggestion.)

    --With hard drive sizes going 'way beyond 40GB these days, a 2nd HD is pretty much essential. My rule of thumb is to have HD #2 == (or greater than) the HD that I use for OS and data; so there's plenty of room for Linux installs, cd-temp areas, and backup space. (My main 80GB HD is a Maxtor; the 2nd HD is an 80GB Seagate.)

    --I usually keep at least 2 previous iterations of backup tarballs, unless the filesize is 8GB or more. Note - it might be worth considering for you to buy a dual-format DVD-burner now. The prices are coming down to $100 or less these days.

    --In addition, I have a special 'bkpcrit' script which saves the absolutely-critical files to a 100MB Zip disk; it should show up on the board if you do a search for it.

    --Yes, reinstalling is painful; but you're better off doing it in the long run, rather than having something break strangely later on because the permissions / ownership went bozotic.

    Quote Originally Posted by rbivins
    YIKES! Indeed!

    Is there a way to re-install that doesn't blow away all the settings that I've spent hours setting? Not to mention all the apps I've installed since then.

    Hmmm . . . not good.

    Or, can I just pull all the /etc, /opt, /bin, /lib, /sbin, and /var from the CD or something?

    Thanks,
    --Robert

  5. #5
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479

    Re: I am now unable to `su -' from user knoppix.

    Quote Originally Posted by rbivins
    Not to mention all the apps I've installed since then.



    Thanks,
    --Robert
    If dpkg is still working then you can get the list of installed packages by dpkg --get-selections > selections.txt save the file and when you reinstall use dpkg --set-selections < selections.txt and then dselect update followed by apt-get deslect-upgrade.

  6. #6
    Junior Member registered user
    Join Date
    Mar 2004
    Posts
    29
    BEFORE YOU REINSTALL.....

    look in your task bar by the clock...make sure your language is selected. The language effects the keyboard and is perhaps entering your password with a German keyboard or vice versa. I realize that this post may be too late for you but maybe it can help someone who finds this post in a keyword search in the future before they reinstall for nothing.

Similar Threads

  1. Windows user now... Linux user tommorow?
    By zspecfenix17 in forum The Lounge
    Replies: 7
    Last Post: 03-10-2005, 05:58 PM
  2. Unable to run Knoppix
    By amiskwia in forum General Support
    Replies: 6
    Last Post: 08-24-2004, 05:56 PM
  3. Make new user with same configs as current user?
    By SunnyB in forum General Support
    Replies: 4
    Last Post: 03-09-2004, 02:02 PM
  4. How to set new user to be like default Knoppix user?
    By bongski55 in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 07-18-2003, 12:22 PM
  5. Unable to access windows partition as user 'knoppix'
    By area in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 06-30-2003, 07:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Knoppix NSM 1.2 picture

Knoppix NSM 1.2

$8.50



Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive picture

Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive

$9.99



Knoppix 9.1 Live Linux GNU Bootable USB Flash Drive USA picture

Knoppix 9.1 Live Linux GNU Bootable USB Flash Drive USA

$19.99



Linux Knoppix 4.0.2 Installation Disc picture

Linux Knoppix 4.0.2 Installation Disc

$39.99



Knoppix Linux Bootable OS v8.6

Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 32G USB Stick

$20.30



Knoppix 3.4 Linux installation CD picture

Knoppix 3.4 Linux installation CD

$15.00



Hamshack Live DVD-ROM picture

Hamshack Live DVD-ROM

$8.50



KNOPPIX 9.1 LINUX INSTALL & LIVE DVD picture

KNOPPIX 9.1 LINUX INSTALL & LIVE DVD

$9.99



Acer Aspire One 9 inch Netbook ZG5 512MB RAM 8GB SSD HD Knoppix Linux WiFi VGA picture

Acer Aspire One 9 inch Netbook ZG5 512MB RAM 8GB SSD HD Knoppix Linux WiFi VGA

$79.99



Knoppix Linux Bootable OS v8.6

Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 16G USB Stick

$19.95