Sponsored Content
Special Forums Cybersecurity Choosing the right distro, Locked down from within. Post 302579695 by Corona688 on Tuesday 6th of December 2011 11:02:49 AM
Old 12-06-2011
Locking down is more an administrator thing than a distribution one. No amount of locking will do any good when they can drop in a CDROM and hit F12 on boot, after all -- that's something you have to think of and prevent. And no distribution will come with a kernel built to match your machine and exclude any device drivers for hardware they don't absolutely need.

Use the old grub-0.97 bootloader for loading. It's much simpler to configure than the new one when you have a static disk layout, and can be locked down pretty thoroughly.

Use a distribution like Gentoo or Slackware where you you get what you install and ONLY what you install, no more, no less.

Build your own kernel. Exclude any and all device drivers for things they shouldn't be using. If you give them a PS/2 keyboard and mouse, you don't even need to enable USB!

Make /tmp/ its own partition, with the 'noexec' flag given in /etc/fstab so nobody will ever be able to run executables in it. Come to think of it, do that for /home/ too.

Make their home directory and profile files read-only and owned by root. That way they can't alter, delete, or replace any config files, and won't be able to download into it. ~/.firefox/ or what have you will have to be writable, though. Make their login shell a restricted shell, /bin/rbash. If they ever get into a shell login somehow they won't be able to do anything useful with it.

Don't give them Java if you can avoid it. You can make an ersatz anything in Java.

Alter /etc/inittab to not spawn terminal logins on VT1-VT6. This will prevent them from doing ctrl-alt-f1 and getting into a raw text console.

Don't install a big WM like Gnome or KDE which will come with thousands of apps and built-in security holes for user convenience. Install something small and predictable like Fluxbox. You get easily-configurable menus and no bundled programs.

And lastly, secure the machine itself. Put in a BIOS password, prevent booting from external media, disable the PXE boot ROM, stick a good padlock in the little loop that prevents people from opening the machine, etc, etc.
 

9 More Discussions You Might Find Interesting

1. Programming

Choosing Java or C++

Listen, if you know a bit of programming in C and need to program unix-type operating systems the next transitive stage is for sure C++. However, have in mind that Java is like learning C but 99% object-oriented(o.o.) and with no pointers or memory-management tricks. It would be good for you to see... (5 Replies)
Discussion started by: SolidSnake
5 Replies

2. UNIX for Dummies Questions & Answers

Choosing a version

I know that the rules say no school questions but I am in advanced topics and am going to go to college for programming and I want to find a easy first OS to start me out, please help, thanks (3 Replies)
Discussion started by: KoKo
3 Replies

3. UNIX for Dummies Questions & Answers

I need help choosing a linux.

There are soo many flavors of linux and i just cant choose/find the right linux for me... I am hopeing for a linux that is a Workhorse Can fit of a seires (or 1) disk(s) Lots of features (admin/mod features) A learning mode or a detailed tutorial Can work side by side with windows... (12 Replies)
Discussion started by: lithuaniaakid
12 Replies

4. Linux

Choosing the best distro.

Hi all Help me find the best distro for the following configurations: Intel pentium IV 1.6 Ghz 128 MB RAM :( 40 GB Hardisk with one very big partition more than 35 gb n another 2 gb partition. windows xp is already installed but has enough free space (26gb). Which linux will be... (0 Replies)
Discussion started by: bbala
0 Replies

5. Slackware

Help for choosing Slackware

Dear Friends, If I use Slackware for learning whether it will make any confusion in administering/using Redhat and SuSE since I have checked slackware is more like BSD. Thank you. (4 Replies)
Discussion started by: Tlogine
4 Replies

6. Shell Programming and Scripting

choosing executable depending on distro

Hi, I have an application in 2 different directories, one is for OpenSuSE and the other for CentOS. I wrote a script which chooses the right executable for the distribution. But it does not work. ------------------- #!/bin/bash if then ( DN="/home/apps/applicationXY/Version3.1" )... (2 Replies)
Discussion started by: serverjunge
2 Replies

7. Shell Programming and Scripting

Dynamically choosing the interpreter

Hi, Is it possible to choose the inerpreter conditionally. For example, if whereis bash returns /usr/bin/bash then i need to choose #!/usr/bin/bash else i need to use #!/usr/bin/sh. Is it possible to achieve in a shell script? Thanks (1 Reply)
Discussion started by: pandeesh
1 Replies

8. Linux

Choosing a UNIX

i have a project in numerical calculus in c language what unix i get better for this? (7 Replies)
Discussion started by: gitac
7 Replies

9. Linux

Help choosing distro

Hi, I just ordered an Skylake NUC and will run Linux on it. My distro of choice has been Ubuntu but I am fed up with the release cycle and would like more of a rolling release. I would say I am an intermediate level Linux user. It's going to be a HTPC, I want to have the latest kernels... (0 Replies)
Discussion started by: rthorntn
0 Replies
GRUB-INSTALL(8) 							FSF							   GRUB-INSTALL(8)

NAME
grub-install - install GRUB on your drive SYNOPSIS
grub-install [OPTION] install_device DESCRIPTION
Install GRUB on your drive. -h, --help print this message and exit -v, --version print the version information and exit --root-directory=DIR install GRUB images under the directory DIR instead of the root directory --grub-shell=FILE use FILE as the grub shell --no-floppy do not probe any floppy drive --force-lba force GRUB to use LBA mode even for a buggy BIOS --recheck probe a device map even if it already exists INSTALL_DEVICE can be a GRUB device name or a system device filename. grub-install copies GRUB images into the DIR/boot directory specfied by --root-directory, and uses the grub shell to install grub into the boot sector. REPORTING BUGS
Report bugs to <bug-grub@gnu.org>. SEE ALSO
grub(8), update-grub(8). The full documentation for grub-install is maintained as a Texinfo manual in the grub-legacy-doc package. If the info and grub-install programs are properly installed at your site, the command info grub-install should give you access to the complete manual. grub-install (GNU GRUB 0.97) January 2013 GRUB-INSTALL(8)
All times are GMT -4. The time now is 06:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy