which will give full pathname by finding a program via the $PATH variable and giving its full pathname. $which su /bin/su Installation: make floppy, set win ftp daemon, install from win cdrom. Begining: Transfer backup.tar.gz to diamond via ftp (init from sapphire to d). As root unzip and unarchive to a tmp dir. mv tmp to /old, restore mv /old/base to /base. cp /old/etc/bashrc /etc/bashrc to restore shell. relogin to a more friendly environment. comment out 2 ttys (mingetty)s in /etc/inittab make su only executable by wheel group: # chown root.wheel /bin/su # chmod 4750 /bin/su # usermod -G wheel spc Configure Lilo: set vga=1 and default boot. lilo and lilo -b /dev/fd0 restart Configure SAMBA: In /etc/services swat 901/tcp In /etc/inetd.conf swat stream tcp nowait.400 root /usr/local/sbin/swat swat kill -1 inetd.pid ...configure shares. Configure Named: copy named.conf to /etc copy /old/var/named/* /var/named/ httpd: edit /etc/httpd/conf/httpd.conf ServerName www.linux.lan addgroup httpd, chgrp -R httpd html,chmod -R 775 html (add an admin to httpd group) setup sendmail: #/etc/sendmail.cf SmtpGreetingMessage= PrivacyOptions=authwarnings noexpn novrfy needmailhelo noetrn HelpFile= #/etc/sendmail.cw dom.domain.com mail.dom.domain.com #/etc/mail/access (make) sapphire RELAY install from linux cd cdr/security/portscanners/portsentry-1.0-4.i386.rpm cdr/security/portscanners/nmap-2.53-1.i386.rpm cdr/security/ssh/ssh-2.3.0-1.i386.rpm copy cdr/security/nc110.tgz /root/tmp/ (need c compiler installed) gunzip nc110.tgz; md nc; mv nc110.tar nc; tar xf nc110.tar; make linux mgetty+sendfax (cd1): rpm -i mgetty-1.1.14-8.i386.rpm Netcat installation: unarchive, make Apache access.conf for .htaccess in root directory, AllowOverride Limit or AllAllowOverride All order allow,deny allow from all AllowOverride None Options -ExecCGI AddHandler cgi-script .cgi AddHandler cgi-script .pl ORAllowOverride FileInfo AuthConfig Limit Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec AddHandler cgi-script .cgi AddHandler cgi-script .pl # srm.conf # UserDir: The name of the directory which is appended onto a user's home # directory if a ~user request is recieved. UserDir public_html OR UserDir /home/*/public_html directories should be mode 755, files 644 if you use http://host/~xor no trailing /, it will redirect you to www.linux.lan, if you append the trailing /, it will go to the server without a redirect. You may notice a difference b/w an internal http://host_name/~user and an external call, the diff is b/w dns lookups b/w internal and extrernal clients. You will get the public NIC IP instead of the internal 192.x IPs. When a new user cannot display their website w/~user/ make sure their /home/ directory has the proper perms (755). md /etc/skel/public_html chmod 755 /etc/skel/public_html x-windows XDMCP start the xdm daemon: # xdm OR # /etc/inittab # Run xdm in runlevel 5, xdm is now a separate service x:345:respawn:/etc/X11/prefdm -nodaemon Install gcc and make: rpm -i make-3.77-6.i386.rpm (make) rpm -i egcs-1.1.2-12.i386.rpm (gcc,cc) rpm -i egcs-c++-1.1.2-12.i386.rpm (g++) Linus says gcc 2.7.3 is still the kernel compiler of choiceorder allow,deny allow from all order deny,allow deny from all