Results 1 to 6 of 6

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

  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
  •  


Cisco 2901/K9-V06 Integrated Services Gigabit Voice Router picture

Cisco 2901/K9-V06 Integrated Services Gigabit Voice Router

$69.99



Cisco Catalyst 3650 48-Port Managed PoE+ Gigabit Switch WS-C3650-48FS-E picture

Cisco Catalyst 3650 48-Port Managed PoE+ Gigabit Switch WS-C3650-48FS-E

$55.99



Cisco Catalyst 3850 48 PoE+ 48-Port Gigabit Managed Switch WS-C3850-48F-E picture

Cisco Catalyst 3850 48 PoE+ 48-Port Gigabit Managed Switch WS-C3850-48F-E

$150.00



Cisco Systems NCS2K-20-SMRFS-L optical multiplexor CISCO EXCESS picture

Cisco Systems NCS2K-20-SMRFS-L optical multiplexor CISCO EXCESS

$3599.00



Cisco WS-C3850-48P-L 48-Port Gigabit 3850 PoE Switch w/ 715W+ C3850-NM-4-1G Mod picture

Cisco WS-C3850-48P-L 48-Port Gigabit 3850 PoE Switch w/ 715W+ C3850-NM-4-1G Mod

$83.00



Cisco Catalyst WS-C2960-48TT-L V02 48 Port Fast Ethernet Switch picture

Cisco Catalyst WS-C2960-48TT-L V02 48 Port Fast Ethernet Switch

$34.00



Cisco C3850-NM-2-10G 2 Port Network Exp.Module for 3850 picture

Cisco C3850-NM-2-10G 2 Port Network Exp.Module for 3850

$38.99



Cisco WS-C4948-10GE-S 4948-10GE 48 Port Gigabit +10GB Switch w single AC 15.0 OS picture

Cisco WS-C4948-10GE-S 4948-10GE 48 Port Gigabit +10GB Switch w single AC 15.0 OS

$99.99



Cisco C9300-48 48 Port Switch Dual PSU W/C9300-NM-8X P/N: C9300-48U-A Tested picture

Cisco C9300-48 48 Port Switch Dual PSU W/C9300-NM-8X P/N: C9300-48U-A Tested

$799.99



Cisco MS410-16-HW 16 Ports Fully Managed Ethernet Switch NEW Unclaimed picture

Cisco MS410-16-HW 16 Ports Fully Managed Ethernet Switch NEW Unclaimed

$999.99