From fda44180796ecad36fcfcd0ce661c03afce98fde Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Tue, 17 Jun 2008 13:54:04 +0200 Subject: [PATCH] * Import initial fstab, inittab, sudoers and systcl.conf. --- etc/fstab | 14 ++++++++++ etc/inittab | 69 +++++++++++++++++++++++++++++++++++++++++++++++++ etc/sudoers | 18 +++++++++++++ etc/sysctl.conf | 26 +++++++++++++++++++ 4 files changed, 127 insertions(+) create mode 100644 etc/fstab create mode 100644 etc/inittab create mode 100644 etc/sudoers create mode 100644 etc/sysctl.conf diff --git a/etc/fstab b/etc/fstab new file mode 100644 index 0000000..e10fbc1 --- /dev/null +++ b/etc/fstab @@ -0,0 +1,14 @@ +# /etc/fstab: static file system information. +# +# +proc /proc proc defaults 0 0 +/dev/mapper/drsnuggles-root / ext3 defaults,errors=remount-ro 0 1 +/dev/cciss/c0d0p1 /boot ext3 defaults 0 2 +/dev/mapper/drsnuggles-data /data ext3 defaults 0 2 +/dev/mapper/drsnuggles-home /home ext3 defaults 0 2 +/dev/mapper/drsnuggles-tmp /tmp ext3 defaults 0 2 +/dev/mapper/drsnuggles-usr /usr ext3 defaults 0 2 +/dev/mapper/drsnuggles-var /var ext3 defaults 0 2 +/dev/mapper/drsnuggles-swap_1 none swap sw 0 0 +/dev/hda /media/cdrom0 udf,iso9660 user,noauto 0 0 +/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0 diff --git a/etc/inittab b/etc/inittab new file mode 100644 index 0000000..04eabd6 --- /dev/null +++ b/etc/inittab @@ -0,0 +1,69 @@ +# /etc/inittab: init(8) configuration. +# $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $ + +# The default runlevel. +id:2:initdefault: + +# Boot-time system configuration/initialization script. +# This is run first except when booting in emergency (-b) mode. +si::sysinit:/etc/init.d/rcS + +# What to do in single-user mode. +~~:S:wait:/sbin/sulogin + +# /etc/init.d executes the S and K scripts upon change +# of runlevel. +# +# Runlevel 0 is halt. +# Runlevel 1 is single-user. +# Runlevels 2-5 are multi-user. +# Runlevel 6 is reboot. + +l0:0:wait:/etc/init.d/rc 0 +l1:1:wait:/etc/init.d/rc 1 +l2:2:wait:/etc/init.d/rc 2 +l3:3:wait:/etc/init.d/rc 3 +l4:4:wait:/etc/init.d/rc 4 +l5:5:wait:/etc/init.d/rc 5 +l6:6:wait:/etc/init.d/rc 6 +# Normally not reached, but fallthrough in case of emergency. +z6:6:respawn:/sbin/sulogin + +# What to do when CTRL-ALT-DEL is pressed. +ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now + +# Action on special keypress (ALT-UpArrow). +#kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this work." + +# What to do when the power fails/returns. +pf::powerwait:/etc/init.d/powerfail start +pn::powerfailnow:/etc/init.d/powerfail now +po::powerokwait:/etc/init.d/powerfail stop + +# /sbin/getty invocations for the runlevels. +# +# The "id" field MUST be the same as the last +# characters of the device (after "tty"). +# +# Format: +# ::: +# +# Note that on most Debian systems tty7 is used by the X Window System, +# so if you want to add more getty's go ahead but skip tty7 if you run X. +# +1:2345:respawn:/sbin/getty 38400 tty1 +2:23:respawn:/sbin/getty 38400 tty2 +3:23:respawn:/sbin/getty 38400 tty3 +4:23:respawn:/sbin/getty 38400 tty4 +5:23:respawn:/sbin/getty 38400 tty5 +6:23:respawn:/sbin/getty 38400 tty6 + +# Example how to put a getty on a serial line (for a terminal) +# +#T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100 +#T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100 + +# Example how to put a getty on a modem line. +# +#T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3 + diff --git a/etc/sudoers b/etc/sudoers new file mode 100644 index 0000000..b600a55 --- /dev/null +++ b/etc/sudoers @@ -0,0 +1,18 @@ +# /etc/sudoers +# +# This file MUST be edited with the 'visudo' command as root. +# +# See the man page for details on how to write a sudoers file. +# + +Defaults env_reset + +# Host alias specification + +# User alias specification + +# Cmnd alias specification + +# User privilege specification +root ALL=(ALL) ALL +matthijs ALL=(ALL) ALL diff --git a/etc/sysctl.conf b/etc/sysctl.conf new file mode 100644 index 0000000..971d612 --- /dev/null +++ b/etc/sysctl.conf @@ -0,0 +1,26 @@ +# +# /etc/sysctl.conf - Configuration file for setting system variables +# See sysctl.conf (5) for information. +# + +#kernel.domainname = example.com +#net/ipv4/icmp_echo_ignore_broadcasts=1 + +# Uncomment the following to stop low-level messages on console +#kernel.printk = 4 4 1 7 + +##############################################################3 +# Functions previously found in netbase +# + +# Uncomment the next line to enable Spoof protection (reverse-path filter) +#net.ipv4.conf.default.rp_filter=1 + +# Uncomment the next line to enable TCP/IP SYN cookies +#net.ipv4.tcp_syncookies=1 + +# Uncomment the next line to enable packet forwarding for IPv4 +#net.ipv4.conf.default.forwarding=1 + +# Uncomment the next line to enable packet forwarding for IPv6 +#net.ipv6.conf.default.forwarding=1 -- 2.30.2