Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You could try starting a shell in root using either sudo -s or sudo su. Then when you have an interactive session as root you could try the command again. I don't want to test this myself. Seems like a bad idea to put 1 in that "file".
Last edited by stress_junkie; 10-31-2010 at 07:25 PM.
If I tell you how to do it, will you tell me how to undo it? Seriously!
Ubuntu, by default, doesn't use a root password. You can, however, give it one, using sudo passwd root. You can then become root as you would in other distributions.
You're probably right.
After a reboot I've now got 0 in there. Is 0 better than nothing, I wonder? Anyhow, the sky hasn't fallen in. Yet.
Edit:
@syg00 Do you know what it does?
Last edited by impert; 10-31-2010 at 07:55 PM.
Reason: Ask question
modules_disabled:
258
259A toggle value indicating if modules are allowed to be loaded
260in an otherwise modular kernel. This toggle defaults to off
261(0), but can be set true (1). Once true, modules can be
262neither loaded nor unloaded, and the toggle cannot be set back
263to false.
Quote:
Since some of the files _can_ be used to screw up your
15system, it is advisable to read both documentation and source
16before actually making adjustments.
Sounds grim. However, on rebooting it set itself to read 0, so I imagine no damage was done. I didn't try echoing "0" to it as I wasn't sure that this was a toggle. I wouldn't be surprised though if it is possible to echo "say hullo to mum" or anything you like to it - but only as root using su, not sudo
That's just a general statement about sysctls. If you're root you can generally royally screw up your system.
With modules_disabled the kernel devs may have been trying to protect you (or your system) from yourself ...
I was googling for kernel.modules_disabled to see what others were saying and found this thread. I know this is an old thread and this was a new feature when the thread was started but I have been playing with this and want to add some commentary which nobody has so far hit upon...
This is a GREAT feature if you want to harden your system. Right now I'm looking at a Linux box with a kernel module based rootkit on it. Had this option been set this guy would not have been owned in this way. For servers, which generally get all of their modules loaded at boot time and then never need any more, this is a great option to employ to help protect the system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.