LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-17-2019, 02:20 PM   #1
Micik
Member
 
Registered: Dec 2004
Distribution: Red hat linux 9
Posts: 189

Rep: Reputation: 16
Delete config files in /boot directory


Hello guys,

I'm wondering if I could delete file named config-2.6.2xxx in /boot folder?
I believe this config file is not needed in order computer to boot. The reason I'm considering this is to prevent anybody else from recompiling the kernel with settings of the current kernel.

So, is it safe to delete config-2.xxxx file in /boot directory?

Thank you.
 
Old 02-17-2019, 02:49 PM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,687

Rep: Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715
Quote:
Originally Posted by Micik View Post
Hello guys,

I'm wondering if I could delete file named config-2.6.2xxx in /boot folder?
I believe this config file is not needed in order computer to boot. The reason I'm considering this is to prevent anybody else from recompiling the kernel with settings of the current kernel.

So, is it safe to delete config-2.xxxx file in /boot directory?

Thank you.
In general that is not really smart. If you even get certain module updates, even for the same kernel, they need to be compiled against the current kernel config and a missing config would break the update. On my system that would be critical, on yours it may or may not depending upon your hardware.

How exactly would anyone get enough access onto your system to compile and install a kernel?
 
Old 02-20-2019, 01:49 AM   #3
Micik
Member
 
Registered: Dec 2004
Distribution: Red hat linux 9
Posts: 189

Original Poster
Rep: Reputation: 16
Hello wpeckham and thank you for the reply.
Of course no one would be able to gain access and recompile kernel on my system. I asked this question trying "to get into shoes" of a supplier that wants to supply system in which adding new HW and/or installing new devices are prohibited.
I just wondered if this config-2.xxxx file in /boot is really needed for everyday machine use and I guess it's not. It is needed only if one wants to add a new device and install new drivers for which it must recompile kernel.
 
Old 02-20-2019, 02:41 AM   #4
joe_2000
Senior Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 1,016

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
Quote:
Originally Posted by Micik View Post
Hello wpeckham and thank you for the reply.
Of course no one would be able to gain access and recompile kernel on my system. I asked this question trying "to get into shoes" of a supplier that wants to supply system in which adding new HW and/or installing new devices are prohibited.
I just wondered if this config-2.xxxx file in /boot is really needed for everyday machine use and I guess it's not. It is needed only if one wants to add a new device and install new drivers for which it must recompile kernel.
This sounds wrong in many ways.
Deleting the config is not a very strong security "protection". Plus someone who builds products based on the (GPL-licensed) Linux kernel should empower their users to modify the product rather than trying to take this freedom away from them.
 
1 members found this post helpful.
Old 02-20-2019, 05:25 AM   #5
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,687

Rep: Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715Reputation: 2715
Quote:
Originally Posted by joe_2000 View Post
This sounds wrong in many ways.
Deleting the config is not a very strong security "protection". Plus someone who builds products based on the (GPL-licensed) Linux kernel should empower their users to modify the product rather than trying to take this freedom away from them.
I agree. If you really want a machine difficult to change, there are embedded hardware techniques that would serve far better.
 
1 members found this post helpful.
Old 02-20-2019, 05:47 AM   #6
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,626
Blog Entries: 19

Rep: Reputation: 4462Reputation: 4462Reputation: 4462Reputation: 4462Reputation: 4462Reputation: 4462Reputation: 4462Reputation: 4462Reputation: 4462Reputation: 4462Reputation: 4462
Also there are software packages that expect certain kernel features. If you are having trouble with one of those and you ask for help, you are going to asked: "Do you have so-and-so activated in your kernel? And is it built-in or a module?" You'll look a bit silly if you can't answer because you threw away the configuration file.
 
1 members found this post helpful.
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
i am not able to delete a Directory from my Pen Drive. when i trying to delete, it showing Error. Shahbaz_Mansuri Ubuntu 6 02-28-2018 05:01 PM
[SOLVED] Cannot delete a recently created directory in Lubuntu, or files in that directory l33y Linux - Newbie 26 06-07-2014 05:49 AM
How to extract all files on a directory and delete all files? moisespedro Slackware 9 01-21-2014 11:55 AM
Can I delete files in /mnt/tmp? and Files in the trash can will not delete? M$ISBS Slackware 15 10-02-2009 11:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:24 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