Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
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.
Hello,
I was under the impression the Linux (in my case the Fedora OS) is very secure. However I've learnt with deep concern that that one can have access to the system during system startup i.e one can give various startup directives and bypass the normal login UI to have direct root access.
Is there a way to disble this so that the directives during startup are fixed and cannot be altered. I would like to make the system secure to the maximum extent possible.
Any suggestions on this will be very helpful.
1 -- use password protection in your bootloader (lilo, grub, etc..). This prevents people from changing the boot command line (partition can still be accessed using live media - see #2).
2 -- consider an encrypted install if you're worried about physical machine security. This would be most all-around secure, and will also prevent someone from booting the machine into "init=/bin/bash" maintenance mode, or accessing it using live media..
You should first protect your system with BIOS password(though,even that can be altered by removing BIOS battery)
Then password protect the GRUB so that no one can login by going in to Single User Mode.
GRUB Password protect link: http://forums.fedoraforum.org/showthread.php?t=216700
And to prevent by-pass using Rescue Mode you need to have disable boot from CD/DVD and USB and password protect BIOS.
Last edited by prayag_pjs; 11-16-2010 at 05:45 AM.
To secure a linux installation, or any server/desktop, you can start by:
1) Restrict access to the computer via Locked doors, cabinets, access cards and such. Cameras are nice too.
2) Lock the case (because someone can remove the cmos battery to reset the bios password)
3) Put a password on the BIOS
4) For more security restrictive areas, remove the CDROM and any USB ports (Ive had to unsolder them from motherboards for high secure areas)
5) For less security restrictive areas, disabling the CDROM and USB in the BIOS will be sufficient.
6) Install an OS that supports complete OFE (on the fly encryption) and encrypt all drives.
7) Install GRUB with a password
Extra paranoia:
8) Set screensaver to logout the user after a specified period of time 2 min or something.
9) Disable any unneeded tty sessions
10) Disable the ctrl-alt-backspace shortcut to disallow someone from quitting X
11) Never log in as root into a graphical shell
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.