-
Junior Member
registered user
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
-
Senior Member
registered user
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](images/misc/quote_icon.png)
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
-
Junior Member
registered user
Re: I am now unable to `su -' from user knoppix.
![Quote](images/misc/quote_icon.png)
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
-
Senior Member
registered user
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](images/misc/quote_icon.png)
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
-
Senior Member
registered user
Re: I am now unable to `su -' from user knoppix.
![Quote](images/misc/quote_icon.png)
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.
-
Junior Member
registered user
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
-
By zspecfenix17 in forum The Lounge
Replies: 7
Last Post: 03-10-2005, 05:58 PM
-
By amiskwia in forum General Support
Replies: 6
Last Post: 08-24-2004, 05:56 PM
-
By SunnyB in forum General Support
Replies: 4
Last Post: 03-09-2004, 02:02 PM
-
By bongski55 in forum Hdd Install / Debian / Apt
Replies: 3
Last Post: 07-18-2003, 12:22 PM
-
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
-
Forum Rules
![DELL PowerEdge R730 Server 2x E5-2697v4 2.3GHz =36 Cores 128GB H730 4xRJ45 picture](/store/img/O2MAAOSwRtNkh97Y/s-l225//DELL-PowerEdge-R730-Server-2x-E5-2697v4-2-3GHz-36-.jpg)
DELL PowerEdge R730 Server 2x E5-2697v4 2.3GHz =36 Cores 128GB H730 4xRJ45
$433.00
![Dell PowerEdge R630 Server 2x E5-2680 V4 = 28 Cores S130 32GB RAM NEW 480GB SSD picture](/store/img/CaAAAOSwEjBmj~ML/s-l225//Dell-PowerEdge-R630-Server-2x-E5-2680-V4-28-Cores-.jpg)
Dell PowerEdge R630 Server 2x E5-2680 V4 = 28 Cores S130 32GB RAM NEW 480GB SSD
$256.99
![Dell PowerEdge R630 Server 2x E5-2640v3 2.60Ghz 16-Core 64GB H330 picture](/store/img/ZD0AAOSwm41mOZYw/s-l225//Dell-PowerEdge-R630-Server-2x-E5-2640v3-2-60Ghz-16.jpg)
Dell PowerEdge R630 Server 2x E5-2640v3 2.60Ghz 16-Core 64GB H330
$182.65
![Dell Poweredge R630 Server 2x E5-2620 V4 =16 Cores | S130 | 32GB RAM | 2x trays picture](/store/img/GAcAAOSw9Q1mGSZW/s-l225//Dell-Poweredge-R630-Server-2x-E5-2620-V4-16-Cores-.jpg)
Dell Poweredge R630 Server 2x E5-2620 V4 =16 Cores | S130 | 32GB RAM | 2x trays
$171.99
![Dell Poweredge R730xd LFF 14-Bay 2U Server | Choose Your CPU & RAM Config picture](/store/img/CdkAAOSwY0BmYMoF/s-l225//Dell-Poweredge-R730xd-LFF-14-Bay-2U-Server-Choose-.jpg)
Dell Poweredge R730xd LFF 14-Bay 2U Server | Choose Your CPU & RAM Config
$454.99
![DELL POWEREDGE R630 8 x 2.5'' 2X E5-2680V4 32GB RAM IDRAC ENT & NDC 2X 495W PSU picture](/store/img/mkkAAOSwE5ZmT1Cg/s-l225//DELL-POWEREDGE-R630-8-x-2-5-2X-E5-2680V4-32GB-RAM-.jpg)
DELL POWEREDGE R630 8 x 2.5'' 2X E5-2680V4 32GB RAM IDRAC ENT & NDC 2X 495W PSU
$179.95
![Dell PowerEdge R620 Server - 256GB RAM, 2x8cCPU, 128Gb SSD/3x900Gb SAS, Proxmox picture](/store/img/480AAOSw9TVl9vAv/s-l225//Dell-PowerEdge-R620-Server-256GB-RAM-2x8cCPU-128Gb.jpg)
Dell PowerEdge R620 Server - 256GB RAM, 2x8cCPU, 128Gb SSD/3x900Gb SAS, Proxmox
$340.00
![Dell Poweredge R730xd 2x E5-2660 v3 2.6ghz / 64gb / H730 / 24x Trays / 2x 750w picture](/store/img/mH0AAOSwCvxmK9Zr/s-l225//Dell-Poweredge-R730xd-2x-E5-2660-v3-2-6ghz-64gb-H7.jpg)
Dell Poweredge R730xd 2x E5-2660 v3 2.6ghz / 64gb / H730 / 24x Trays / 2x 750w
$344.99
![DELL PowerEdge R730 16SFF Server 2x E5-2680v4 2.4GHz =28 Cores 64GB H730 4xRJ45 picture](/store/img/HgEAAOSwQh5k1YNe/s-l225//DELL-PowerEdge-R730-16SFF-Server-2x-E5-2680v4-2-4G.jpg)
DELL PowerEdge R730 16SFF Server 2x E5-2680v4 2.4GHz =28 Cores 64GB H730 4xRJ45
$317.00
![Dell Poweredge R420 3.5](/store/img/A0IAAOSwHTJmM-wg/s-l225//Dell-Poweredge-R420-3-5-2x-Xeon-E5-2430-2-2ghz-12-.jpg)
Dell Poweredge R420 3.5" 2x Xeon E5-2430 2.2ghz 12-Cores 24gb 2x 1TB 2x 550w
$169.99