LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-20-2009, 01:22 PM   #16
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 70

Quote:
Originally Posted by Quakeboy02 View Post
You do not have to be root in order to be able to write to the .config file *that is within your kernel source tree*. End of story.
I'd certainly expect .config to be owned by root, else replacing this file with something else could be dangerous if a user were to need to rebuild a kernel without needing modifications, as I myself have had to do often.
 
Old 01-20-2009, 01:32 PM   #17
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,378

Original Poster
Rep: Reputation: Disabled
So now I have to figure out what to do about the headers. The problem appears to be that they're there but in the wrong place.
 
Old 01-20-2009, 01:41 PM   #18
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by jamescondron View Post
I'd certainly expect .config to be owned by root, else replacing this file with something else could be dangerous if a user were to need to rebuild a kernel without needing modifications, as I myself have had to do often.
This is turning into a flamewar, isn't it? Do as you like on your system. But, do take a second and look at the permissions of the kernel source modules. It seems they're not root either. Hmmm.
 
Old 01-20-2009, 02:40 PM   #19
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,378

Original Poster
Rep: Reputation: Disabled
I was thinking that there hasn't been any flaming yet; but if there is any, it won't involve me--the question of whether the kernel source modules are root hasn't struck me as very important. It so happens that I need to hold off on this project anyway, because in case it ultimately doesn't work, I have bought another hard drive, an IDE, and will be busy reinstalling MEPIS on it. (Then I'll start this kernel compiling all over again. Maybe the new installation will have the kernel headers where they're supposed to be, anyway.)

So maybe I should duck out of my own thread now.

Last edited by newbiesforever; 01-20-2009 at 02:43 PM.
 
Old 01-20-2009, 04:14 PM   #20
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
If sometimes happens that we need to do a reinstall; especially for the newer users. I'm reaching that point with my system, I think. I've got an issue with playing .flv files and I'm not making any progress at all.

It sounds like you're starting to get an understanding of the procedures to follow to build a new kernel. I would expect that you will be fine once you do the reinstall.
 
Old 01-20-2009, 06:50 PM   #21
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 70
Quote:
Originally Posted by Quakeboy02 View Post
This is turning into a flamewar, isn't it? Do as you like on your system. But, do take a second and look at the permissions of the kernel source modules. It seems they're not root either. Hmmm.
Wow, I only meant to say that on the ideal system, everything to do with the kernel, config or not, would be root based; its certainly nothing to do with you; you had nothing to do with the design. A flame war seems very extreme.

@newbiesforever: Kernel sources are immaterial here- the original error is from the kernel sources trying to use headers which aren't in whatever the equivalent to $PATH is for C- try writing and compiling some C with a couple of those headers being loaded- see if they load; if they do, its the kernel source, if not, its a gcc error- in which case, gcc wants rebuilding.
 
Old 01-20-2009, 08:04 PM   #22
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by jamescondron View Post
Wow, I only meant to say that on the ideal system, everything to do with the kernel, config or not, would be root based; its certainly nothing to do with you; you had nothing to do with the design.
Unfortunately, this would add still another temptation for people to just login to root and have done with it, thus having done with one of the inherently strong protections that Linux affords. The risk that someone will write a worm/virus/malware that will login as you and then search out source code modules to modify on the offhand chance that you will then compile a new kernel with the bad code and install it has to be much lower than the risk of teaching users to use root casually.

From my POV, the current system is good. You can put your kernel source wherever you like, and you can mess with the source and .config files to your heart's content as a normal user. It's only when you need to install a new kernel that you need to become root.
 
Old 01-22-2009, 02:42 PM   #23
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,378

Original Poster
Rep: Reputation: Disabled
(I have now got my new IDE hard drive, bought in case the SATA drive never works, up and running, with a new copy of MEPIS, and can continue this project.)

I just had a discouraging thought. Here I am with MEPIS on an IDE drive, trying to recompile its kernel for a SATA HD (obviously since the SATA device hasn't been detected yet by MEPIS). But why am I doing that? Until I discovered that this SATA HD didn't work and had to buy another new drive (that was IDE) this SATA HD was going to be my main hard drive. So basically, I don't really want the SATA drive to be detected from an IDE drive; I want the SATA drive to detect itself (through MEPIS). So isn't what I'm doing pointless? Unless I'm willing to use the SATA drive only as a backup drive?

Oh, well. At least my new IDE drive works fine, so I can send the SATA drive back to Newegg (or at least try).

Last edited by newbiesforever; 01-22-2009 at 02:43 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't "make menuconfig" as non-root, ncurses not found GamerX Slackware 16 11-15-2017 08:11 PM
"make menuconfig" doesn't work kponenation Ubuntu 10 01-14-2006 10:35 PM
Errors Trying to "make menuconfig" kernel-source-2.6.10 Royle Debian 2 02-14-2005 06:53 AM
debian woody: error at "make menuconfig" Lingo Linux - Newbie 3 11-29-2002 05:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration