Beruflich Dokumente
Kultur Dokumente
,
LINUX Administrator’s /etc/rc.d/rc.netdevice
“rc.netdevice” mouse MOUSETYPE=Microsoft
/sbin/modprobe e100 XEMU3=yes
Quick Reference Card /etc/modules.conf
Or in “modules.conf” network settings, contains
Jialong He alias eth0 e100 network NETWORKING=yes
Jialong_he@bigfoot.com /etc/HOSTNAME HOSTNAME=hostname.domain.com
http://www.bigfoot.com/~jialong_he /etc/NETWORKING
hostname is set by “/bin/hostname” during
(Slackware)
boot and the name is read from these files.
User Management May change manually. NFS File Sharing
/etc/sysconfig/network
Files (Redhat) Files
/etc/group specify name server, DNS domain and /etc/fstab file systems mounted during boot.
/etc/passwd User account information. search order. For Example: /etc/exports NFS server export list.
/etc/shadow etc/resolv.conf
search la.asu.edu
/etc/auto.master auto mount master file.
/etc/bashrc nameserver 129.219.17.200
/etc/profile
BASH system wide and per user init files. /etc/hosts host name to IP mapping file. Commands
$HOME/.bashrc host name information look up order. mount mount a file system or all entries in fstab.
$HOME/.bash_profile Example:
/etc/host.conf exportfs export file system listed in exports
/etc/csh.cshrc order hosts, bind
/etc/csh.login multi on showmount –e show file systems exported
$HOME/.cshrc TCSH system wide and per user init files. hostname
/etc/nsswitch.conf new way to specify information source.
$HOME/.tcshrc
$HOME/.login /etc/networks
/etc/skel template files for new users.
/etc/protocols TCP/IP services and ports mapping. Printer Configuration
/etc/services
/etc/default default for certain commands. /etc/rpc RPC service name to their program numbers
Files
/etc/redhat-release Redhat and Slackware version info (Linux mapping. /etc/printcap
Printer capabilities data base.
/etc/slackware-version kernel version with “uname –a”) /etc/printcap.local
Commands /etc/lpd.conf LPRng configuration file.
Commands netconfig menu driven Ethernet setup program. permissions control file for the LPRng line
script to create an new user interactively /etc/lpd.perms
adduser pppsetup setup PPP connection (Slackware). printer spooler
(slackware) or link to useradd (Redhat).
setup Ethernet during boot, for example /etc/hosts.lpd Access control (BSD lpd).
useradd, userdel, create, delete, modify an new user or update
usermod default new user information.. /etc/hosts.equiv trusted hosts.
/sbin/ifconfig eth0 ${IPADDR} broadcast
newusers update and create new users (batch mode). ${BROADCAST} netmask ${NETMASK} PRINTER Environment variable of default printer.
groupadd, groupdel, /dev/lp0 parallel port.
add, delete or modify group. ifconfig
groupmod /sbin/route add -net ${NETWORK} netmask
${NETMASK} eth0 Commands
modify account policy (password length,
line printer control program, print queue
expire data etc.) or finger information (full /sbin/route add default gw ${GATEWAY} netmask lpc, lpq, lprm
chage. chfn, chsh maintain
name, phone number etc.) change default login 0.0.0.0 metric 1
shell.
host lookup host name or IP (similar to nslookup).
linux init=/bin/sh rw
gain root access during boot prompt without
dnsdomainname show DNS domain name.
Sendmail
password, can be used to fix some problems.
mount –w -n –o remount / arping; arp find out Ethernet address by first arping then arp. Files
makebootdisk ipchains firewall and NAT (/etc/sysconfig/ipchains on Redhat) “sendmail.cf” is the configuration file. “sendmail.mc” is
make a bootable floppy disk sendmail.cf
iptables firewall and NAT (/etc/sysconfig/iptables on Redhat) a macro file which can be used to generate “sendmail.cf”
sendmail.mc
by: m4 sendmail.mc > sendmail.cf
ntsysv menu driven SYSV service configuration (Redhat)
mail aliases, must run “newaliases” after change. use
Network Configuration chkconfig command line SYSV service configuration (Redhat) aliases
:include: to include external list in a file.
Files .forward
per user aliases, use \yourname to prevent further expand
and keeps a copy in mailbox.
/etc/rc.d/rc.inet1 Redhat files in /etc/sysconfig
(Slackware) IP address, Network mask, Default gateway mail access control, FEATURE(access_db) should be set
/etc/sysconfig/nework- are in these files. May edit manually to Configuration Files in sendmail.mc. For example, in /etc/mail/access
access
scripts/ifcfg-eth0 (Redhat) modify network parameters. keyboard map, e.g., cyberpromo.com REJECT
keyboard mydomain.com RELAY
KEYBOARD=”/usr/lib/kdb/keytables/us.map”
spam@somewhere.com DISCARD /boot/System.map nmap scan a host for opened ports.
title Windows XP
rootnoverify (hd0,0)
chainloader +1