{"id":111,"date":"2004-07-07T11:54:06","date_gmt":"2004-07-07T09:54:06","guid":{"rendered":""},"modified":"2007-07-03T09:06:37","modified_gmt":"2007-07-03T07:06:37","slug":"unix-tips-tricks","status":"publish","type":"post","link":"http:\/\/www.lookit.org\/blog\/?p=111","title":{"rendered":"Unix Tips &#038; Tricks"},"content":{"rendered":"<p>Unix Tips &amp; Tricks<br \/><!--more--><\/p>\n<p><strong>SWAP CONFIGURATION :<\/strong><br \/>http:\/\/forum.sun.com\/thread.jspa?threadID=25317&amp;tstart=0<br \/>http:\/\/docs.sun.com\/app\/docs\/doc\/816-1048\/6m7gaddij?a=view <br \/>\/dev\/dsk\/c&#8230;&#8230;&#8230;.&nbsp;&nbsp; &#8211;&nbsp;&nbsp; &#8211;&nbsp;&nbsp; swap&nbsp;&nbsp; &#8211;&nbsp;&nbsp; yes&nbsp;&nbsp; &#8211; ds \/etc\/vfstab<br \/>swap -a \/dev\/dsk\/c&#8230;&#8230;<br \/>swap -l<br \/>swap -s<br \/>swap -d \/dev\/dsk\/c0&#8230;&#8230;&#8230; <\/p>\n<p><strong>GESTION CENTRALISE PARC INFO LINUX\/UNIX :<\/strong><br \/>http:\/\/www.int-evry.fr\/mci\/user\/doutrele\/linux\/<br \/>http:\/\/thierrylhomme.developpez.com\/cfengine.html<br \/>http:\/\/www.int-evry.fr\/mci\/user\/procacci\/Doc\/cfengine\/cfengine.html <br \/>http:\/\/www.sysnav.com\/index.php?id=49,85,0,0,1,0<br \/>http:\/\/www.sun.com\/bigadmin\/features\/articles\/cfengine_part1.html?feed=RSS<br \/>http:\/\/www.sun.com\/bigadmin\/features\/articles\/cfengine_part2.html?feed=RSS<br \/>www.cfengine.org<br \/>cfagent -qKv : reinstallation et check des conf sur le client <\/p>\n<p><strong>SSh A DISTANCE : <\/strong><br \/>ssh Client &quot; commande locale &lt;&lt; cat \/tmp\/resultat &quot;<br \/>ssh Client ls \/ &gt; \/tmp\/1.test<br \/><strong><br \/>RSYNC WEB :<\/strong><br \/>http:\/\/www.delafond.org\/traducmanfr\/man\/man1\/rsync.1.html<\/p>\n<p><strong>ORACLE BASE DE DONNEES :<\/strong><br \/>http:\/\/cyril-gruau.developpez.com\/uml\/tutoriel\/ConceptionBD\/<br \/>http:\/\/etudiant.univ-mlv.fr\/~idernaul\/projetbdd\/index.html<br \/>http:\/\/www.ac-grenoble.fr\/ecogest\/pedago\/administration\/prodpeda\/mcd.htm <br \/>http:\/\/osx.freshmeat.net\/projects\/tora\/<br \/>http:\/\/gbriard.club.fr\/technique\/21.htm<br \/>http:\/\/www.puschitz.com\/ : install fedora core 3 oracle 10<br \/>http:\/\/staff.in2.hr\/denis\/oracle\/10g1install_fedora3_en.html<br \/>http:\/\/www.informatics.sussex.ac.uk\/users\/bernhard\/db2003\/datastudio.pdf<br \/>http:\/\/www.aquafold.com\/downloads.html<br \/>http:\/\/download.oracle.com\/otn\/linux\/oracle10g\/ship.db.lnx32.cpio.gz<br \/>http:\/\/download.oracle.com\/otn\/nt\/oracle10g\/htmldb\/htmldb_1.6.zip <br \/>http:\/\/www.oracletoolbox.org\/<br \/>http:\/\/www.oracle-base.com\/articles\/9i\/Oracle9iInstallationOnRedHatAS3.php<br \/>http:\/\/www.oracle-base.com\/articles\/10g\/OracleDB10gInstallationOnFedora1.php<br \/>http:\/\/www.pagux.com\/oracle9ionfedora3.html<br \/>http:\/\/www.oracle-base.com\/articles\/10g\/OracleDB10gInstallationOnFedora3.php<br \/>http:\/\/www.aquafold.com\/downloads.html<\/p>\n<p><strong>NMAP :<\/strong><br \/>nmap IP_test -P0<\/p>\n<p>&nbsp;<\/p>\n<p><strong>EXPORT DISPLAY :<\/strong><br \/>export DISPLAY=&quot;corail:0.0&quot; : de la ou est lance le programme<br \/>bash-2.05$&shy;&shy;&shy;&shy;&shy;&shy;&shy;&shy; xhost + :::: machine qui va initier le lancement <br \/><strong><br \/>2 IPs ON ONE NETWORK :<\/strong><\/p>\n<p>http:\/\/www.adminschoice.com\/discus\/messages\/1\/172.html?1100850818<br \/>http:\/\/unix.ittoolbox.com\/groups\/groups.asp?v=SOLARIS-L&amp;i=39259<\/p>\n<p><strong>LOGWATCH SWATCH :<\/strong><\/p>\n<p>http:\/\/home.gagme.com\/greg\/linux\/protect-ssh.php#other<\/p>\n<p><strong>TRIPWIRE :<\/strong><\/p>\n<p>http:\/\/www.redhat.com\/docs\/manuals\/linux\/RHL-7.3-Manual\/ref-guide\/ch-tripwire.html<\/p>\n<p><strong>MOUNT WINDOWS SHARE :<\/strong><\/p>\n<p>mount -F cifs \/\/computername\/share \/mnt\/somedirectory<\/p>\n<p><strong>TUNNEL SSH :<\/strong><\/p>\n<p>http:\/\/forum.hardware.fr\/hardwarefr\/OSAlternatifs\/connecte-utilisant-connexion-httptunnel-sujet-41117-1.htm<br \/>ssh -R 10033:localhost:22 user@ip<br \/>10.5.216.84<br \/>ssh -X -p 10033 localhost<\/p>\n<p><strong>SIGNATURE ASCII, CADRES :<\/strong><\/p>\n<p>http:\/\/boxes.thomasjensen.com\/<br \/>http:\/\/www.nog.net\/~tony\/warez\/cowsay.shtml<br \/>figlet dag<\/p>\n<p><strong>HTACCESS EN URL :<\/strong><\/p>\n<p>parametre htaccess via url<br \/>oui index.htm vide : url via le site alo<br \/>http: \/\/login:mdp@site\/fichier<br \/><strong><br \/>EQUIVALENCE : LINUX, WINDOWS :<\/strong><\/p>\n<p>http:\/\/bhami.com\/rosetta.html<br \/>http:\/\/linuxshop.ru\/linuxbegin\/win-lin-soft-en\/table.shtml<\/p>\n<p><strong>QUELQUES MOULINETTES :<\/strong><\/p>\n<p>for user in `ls`;do echo `ypcat passwd |grep $&shy;&shy;&shy;&shy;&shy;&shy;&shy;&shy;user |awk -F&quot;:&quot; &#39;{print $&shy;&shy;&shy;&shy;&shy;&shy;&shy;&shy;5}&#39; |awk -F&quot;;&quot; &#39;{print $&shy;&shy;&shy;&shy;&shy;&shy;&shy;&shy;1}&#39;`&quot; &#8211; &quot;`ypcat aliases |grep $&shy;&shy;&shy;&shy;&shy;&shy;&shy;&shy;user |uniq`;done<\/p>\n<p><strong>BITTORENT :<\/strong><\/p>\n<p>http:\/\/torrent.linux.duke.edu\/<br \/><strong><br \/>NAGIOS RRDTOOL MRTG :<\/strong><\/p>\n<p>http:\/\/martybugs.net\/linux\/hddtemp.cgi <br \/>http:\/\/dag.wieers.com\/packages\/nagios\/<br \/>http:\/\/dag.wieers.com\/packages\/nagios\/nagios-1.2-1.1.fc3.rf.i386.rpm<br \/>http:\/\/dag.wieers.com\/packages\/nagios\/nagios-devel-1.2-1.1.fc3.rf.i386.rpm<br \/>http:\/\/www.supinfo-projects.com\/fr\/2004\/monitoring_unix\/2\/<br \/>http:\/\/www.linagora.org\/rubrique39.html<br \/>http:\/\/www.fedora-france.org\/modules\/newbb\/viewtopic.php?topic_id=1023&amp;forum=16<br \/>http:\/\/docs.guill.net\/article.php3?id_article=2 <br \/>http:\/\/www.linux-sottises.net\/en_mrtg.php <br \/>http:\/\/www.joepverhaeg.nl\/rrdtemp\/ <br \/>http:\/\/silverwraith.com\/papers\/freebsd-snmp.php <br \/>http:\/\/www.espace-groupware.com\/supervision\/nagios\/<br \/>http:\/\/www-igm.univ-mlv.fr\/~dr\/XPOSE2004\/nchaveron\/Nagios.html <br \/>http:\/\/www.swelltech.com\/support\/webminguide\/ch01.html<br \/>http:\/\/nagmin.sourceforge.net\/<br \/>http:\/\/dag.wieers.com\/packages\/webmin\/webmin-1.190-1.1.fc3.rf.noarch.rpm <br \/>http:\/\/nagiosplug.sourceforge.net\/developer-guidelines.html<br \/>http:\/\/nagiosplug.sourceforge.net\/<br \/>http:\/\/nagiosplug.sourceforge.net\/projects\/sourceforge.php <br \/>http:\/\/www.onlamp.com\/pub\/a\/onlamp\/2002\/09\/05\/nagios.html <br \/>http:\/\/www.onlamp.com\/pub\/a\/onlamp\/2002\/09\/26\/nagios.html PART 2 <br \/>Nagios : ICMP, mailing list : NAGAT<br \/>http:\/\/www.nagios.org\/download\/extras.php<br \/>https:\/\/gna.org\/projects\/nagat\/<br \/>livre nagios<br \/>http:\/\/docs.guill.net\/article.php3?id_article=2<br \/>http:\/\/archil.nerim.net\/nagios\/index.html <br \/>http:\/\/archil.nerim.net\/nagios\/index.html<br \/>http:\/\/www.oreon.org\/oreon.php?p=2<br \/>http:\/\/sf.gds.tuwien.ac.at\/n\/na\/nagiostat\/<br \/>http:\/\/linuxfr.org\/~alenvers\/13845.html<br \/>http:\/\/forums.cacti.net\/about1843.html<br \/>http:\/\/www.nagiosexchange.org\/Charts.42.0.html<br \/>http:\/\/www.hannes-schulz.de\/?doc=proj&amp;proj=nagios<br \/>http:\/\/apan.sourceforge.net\/<br \/>http:\/\/sourceforge.net\/projects\/nagiosgraph\/<br \/>http:\/\/www.nagiosexchange.org\/Charts.42.0.html?&amp;tx_netnagext_pi1[p_view]=195<br \/>http:\/\/nagios.sourceforge.net\/docs\/1_0\/notifications.html<br \/>http:\/\/sourceforge.net\/projects\/nagiostat<br \/>http:\/\/people.via.ecp.fr\/~alexis\/formation-linux\/centericq.html<br \/>http:\/\/www.int-evry.fr\/mci\/user\/procacci\/Doc\/nagios\/nagios.html<br \/>http:\/\/www.espace-groupware.com\/supervision\/nagios\/<br \/>http:\/\/www-igm.univ-mlv.fr\/~dr\/XPOSE2004\/nchaveron\/Nagios.html <br \/>http:\/\/mathias-kettner.com\/nagios_plugins.html : cacti et nagios<br \/>ttp:\/\/www.trustonme.net\/didactels\/191.html<br \/>http:\/\/www.cacti.net\/downloads\/docs\/html\/install_unix.html<br \/>http:\/\/esaracco.free.fr\/Nagios\/<br \/><strong>cr&eacute;ation script nagios :<\/strong><br \/>Ecrire des plugins<br \/>&gt;&gt; Nous avons vu qu&rsquo;il &eacute;tait possible d&rsquo;&eacute;crire ses propres plugins. Nous<br \/>&gt;&gt; avons tent&eacute; l&rsquo;exp&eacute;rience, &agrave; partir de la commande nmap, pour d&eacute;tecter<br \/>&gt;&gt; le type d&rsquo;OS tournant sur la machine test&eacute;e.<br \/>&gt;&gt; Nous avons tout simplement repris un plugin de type<br \/>&gt;&gt; non-binaire,check_sensors, et nous l&rsquo;avons adapt&eacute; en changeant la<br \/>&gt;&gt; section sp&eacute;cifique au plugin. Nous l&rsquo;avons remplac&eacute;e par les quelques<br \/>&gt;&gt; lignes suivantes :<br \/>&gt;&gt; nmap -O $&shy;&shy;&shy;&shy;&shy;&shy;&shy;&shy;1&gt;\/usr\/local\/nagios\/libexec\/tmp<br \/>&gt;&gt; toto=`cat \/usr\/local\/nagios\/libexec\/tmp|grep &quot;linux&quot;|wc -l`<br \/>&gt;&gt; if test &quot;$&shy;&shy;&shy;&shy;&shy;&shy;&shy;&shy;toto&quot; -ge 1; then<br \/>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; $&shy;&shy;&shy;&shy;&shy;&shy;&shy;&shy;ECHO &quot;OS=LINUXn&quot;<br \/>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; exitstatus=$&shy;&shy;&shy;&shy;&shy;&shy;&shy;&shy;STATE_OK<br \/>&gt;&gt; else<br \/>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; toto=`cat \/usr\/local\/nagios\/libexec\/tmp|grep &quot;Windows&quot;|wc -l`<br \/>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; if test &quot;$&shy;&shy;&shy;&shy;&shy;&shy;&shy;&shy;toto&quot; -ge 1; then<br \/>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $&shy;&shy;&shy;&shy;&shy;&shy;&shy;&shy;ECHO &quot;OS=WINDOWSn&quot;<br \/>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exitstatus=$&shy;&shy;&shy;&shy;&shy;&shy;&shy;&shy;STATE_OK<br \/>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; else<br \/>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $&shy;&shy;&shy;&shy;&shy;&shy;&shy;&shy;ECHO &quot;OS INCONNUn&quot;<br \/>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exitstatus=$&shy;&shy;&shy;&shy;&shy;&shy;&shy;&shy;STATE_OK<br \/>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; fi<br \/>&gt;&gt; fi<br \/>&gt;&gt; rm \/usr\/local\/nagios\/libexec\/tmp<br \/>&gt;&gt; Rem. En fait, la commande nmap -O IPaddress donne un certain nombre<br \/>&gt;&gt; d&rsquo;informations concernant la machine, dont le type d&rsquo;OS18. Comme vous<br \/>&gt;&gt; pouvez le constater, ce test simple, que nous avons appel&eacute; check_os ,<br \/>&gt;&gt; effectue un grep sur le r&eacute;sultat du nmap, de sorte &agrave; rechercher s&rsquo;il<br \/>&gt;&gt; s&rsquo;agit de Linux ou de Windows. Bien s&ucirc;r, on pourrait l&rsquo;&eacute;toffer pour<br \/>&gt;&gt; donner les versions d&rsquo;OS, ou tester d&rsquo;autres OS, mais l&agrave; n&rsquo;est pas<br \/>&gt;&gt; l&rsquo;int&eacute;r&ecirc;t. Au final, nous disposons maintenant du plugin check_os, &agrave;<br \/>&gt;&gt; utiliser ainsi :<br \/>&gt;&gt; check_os IPaddress,<br \/>&gt;&gt; et qui va nous renvoyer dans la page des services de Nagios 3 valeurs<br \/>&gt;&gt; possibles : OS=LINUX, OS=WINDOWS ou OS INCONNU.<br \/>&gt;&gt; Cependant, cet exemple poss&egrave;de un inconv&eacute;nient. En effet, la r&eacute;ponse<br \/>&gt;&gt; est loin d&rsquo;&ecirc;tre imm&eacute;diate. En fait, dans le cas d&rsquo;un OS Windows, on<br \/>&gt;&gt; observe un temps de r&eacute;ponse correct, de l&rsquo;ordre de la seconde, mais<br \/>&gt;&gt; pour Linux, la commande nmap dure plusieurs secondes. Nous allons<br \/>&gt;&gt; maintenant voir un autre moyen, plus pratique et plus rapide de tester<br \/>&gt;&gt; l&rsquo;OS. En outre, il va nous permettre de r&eacute;cup&eacute;rer un certain nombre<br \/>&gt;&gt; d&rsquo;informations compl&eacute;mentaires, notamment concernant le type de<br \/>&gt;&gt; machine (hardware).<br \/>check_load nagios : profile : export LANG=C<\/p>\n<p><strong>ICQ LIGNE DE COMMANDE ET ENVOI MESSAGE LIGNE DE COMMANDE :<\/strong><\/p>\n<p>http:\/\/konst.org.ua\/centericq\/<\/p>\n<p><strong>NFS :<\/strong><\/p>\n<p>http:\/\/ernest.cheska.net\/index.php?fichier=nfs&amp;status=loaddocumentation<\/p>\n<p><strong>MYSQL :<\/strong><\/p>\n<p>\/usr\/bin\/mysqldump -u root -ppasswd -x -e -A &gt; \/data2\/mysql_lookit.sql<br \/>mysql -u root -pmypwd &lt; \/tmp\/backup\/base1_table1.sql<br \/>http:\/\/www.debianworld.org\/index.php?page=doc_backing_up_mysql<br \/>Changer le mot de passe d&#39;un utilisateur<br \/>Se connecter en tant que root :<br \/>mysql -u root -p password<br \/>Puis ex&eacute;cuter les requ&ecirc;tes SQL suivantes :<br \/>USE mysql;<br \/>UPDATE user SET password=PASSWORD(&#39;toto&#39;) WHERE user=&#39;root&#39;;<br \/>FLUSH PRIVILEGES;<\/p>\n<p><strong>CRYPTAGE FICHIER :<\/strong><\/p>\n<p>http:\/\/www.ze-linux.org\/howto.html?id_docs=19&amp;version=mono<br \/>crypt pour XXX : gpg &#8211;batch &#8211;output 1.gpg -a -e -r Name<br \/>pub&nbsp; 1024D\/8BCECB05 2005-04-22 Emmanuel (nsl3.dyndns.org) &lt;nsl@free.fr&gt;<br \/>&gt;&nbsp; Empreinte de la cl&Atilde;&copy; = XXXX XXXX XXXX XXXX XXXX XXXX &#8230;.<br \/>&gt; sub&nbsp; 2048g\/XDDKDKD 2005-04-22<\/p>\n<p><strong>GRAVER LIGNE DE COMMANDE :<\/strong><\/p>\n<p>http:\/\/www.gcolpart.com\/howto\/grav.php4<br \/>http:\/\/people.via.ecp.fr\/~alexis\/formation-linux\/graver.html<br \/>http:\/\/callendor.zongo.be\/wiki\/GraverSousGnuLinux<br \/>effacer : cdrecord blank=fast dev=ATA:1,0,0<br \/>chercher graveur : cdrecord -scanbus<br \/>graver iso : cdrecord dev=ATAPI:1,0,0 -sao -v windows.iso<br \/>creer iso : mkisofs -LlrR -o windows.iso .\/graver\/<br \/>cdrecord blank=fast dev=ATA:1,0,0<br \/>mkisofs -R -r -J &#8211;hide-rr-moved -V &quot;MyDisc&quot; -o windows.iso .\/graver\/<br \/>pour windows !!!!<br \/>cdrecord dev=ATAPI:1,0,0 speed=4 -dao -force driveropts=burnproof -data &gt; gracetime=0 -v windows.iso<\/p>\n<p><strong>PORTSENTRY SECURITE NMAP NETSTAT :<\/strong><\/p>\n<p>http:\/\/cyrille.balland.free.fr\/site-esmith\/securite\/portsenty.htm<br \/>http:\/\/www.linux-france.org\/prj\/inetdoc\/securite\/tutoriel\/tutoriel.securite.dissimulation.backdoor.html<br \/>netstat -apn<br \/>nmap -P0 192.168.0.8<\/p>\n<p><strong>SNMP <\/strong>:<\/p>\n<p>http:\/\/www.little-pinguin.net\/tutos\/2<br \/>http:\/\/christian.caleca.free.fr\/snmp\/la_mib.htm<\/p>\n<p><strong>SENDMAIL :<\/strong><br \/>http:\/\/www.linux-sec.net\/Mail\/sendmail.gwif.html<\/p>\n<p><strong>TCP\/IP :<\/strong><\/p>\n<p>http:\/\/home.student.uu.se\/j\/jolo4453\/projekt\/tcpip1\/ip_rout.htm<br \/>Ipforwarding : http:\/\/www.leonine.com\/sunlib\/security\/ipf\/solaris-x86-fw-ipf.html<br \/><strong><br \/>MIRROR WEB SITE :<\/strong><br \/>http:\/\/www.openca.org\/openca\/mirrors.shtml : doing rsync with ftp or http <\/p>\n<p><strong>APACHE SSL SERVER CLIENT HTTPS IDENTIFICATION :<\/strong><\/p>\n<p>http:\/\/ws.apache.org\/soap\/docs\/install\/FAQ_Tomcat_SOAP_SSL.html<br \/>http:\/\/www.garex.net\/apache\/<br \/>https:\/\/ssl247.com\/buy_starter_ssl.php<br \/>https:\/\/products.freessl.com\/ssl\/chainedssl.do?ref=freessl<br \/>http:\/\/www.rapidssl.com\/chainedssl\/chainedssl-csr.html<br \/>http:\/\/www.faure.de\/Apache+SSL+PHP+fp-howto-1p.html<br \/>http:\/\/www.ssl.com\/support\/multipleCAApache.jsp <br \/>http:\/\/marc.boget.free.fr\/stage-html2\/Memoire%20de%20stage-8_2_6.html <br \/>http:\/\/www.cru.fr\/securite\/crypto-jres99.pdf <\/p>\n<p><strong>AUTO-MOUNT MONTAGE :<\/strong><\/p>\n<p>http:\/\/wiki.9hells.org\/USB_Storage<\/p>\n<p><strong>AWSTATS :<\/strong><\/p>\n<p>[root@nsl3 awstats]# \/var\/www\/awstats\/awstats.pl -config=website<br \/>Update for config &quot;\/etc\/awstats\/awstats.website.conf&quot;<br \/>With data in log file &quot;\/var\/log\/httpd\/access_log&quot;&#8230;<br \/>Phase 1 : First bypass old records, searching new record&#8230;<br \/>Searching new records from beginning of log file&#8230;<br \/>Phase 2 : Now process new records (Flush history on disk after 20000 hosts)&#8230;<br \/>Jumped lines in file: 0<br \/>Parsed lines in file: 2079<br \/>&nbsp;Found 0 dropped records,<br \/>&nbsp;Found 0 corrupted records,<br \/>&nbsp;Found 0 old records,<br \/>&nbsp;Found 2079 new qualified records.<\/p>\n<p><strong>PROTFTP :<\/strong><br \/>&quot;500 FTP server shut down (Maintanance in progress) &#8212; please try again later.&quot;<br \/># rm -f \/etc\/shutmsg<br \/># \/etc\/rc.d\/init.d\/proftpd resume <br \/>&#8212;&#8212;<br \/>CHROOT<br \/>&lt;Global&gt;<br \/>DefaultRoot \/data\/servers\/ftp\/<br \/>DefaultTransferMode binary<br \/>RootLogin off<br \/>#DefaultChdir \/data\/servers\/ftp\/<br \/>&lt;\/Global&gt; <br \/>&#8212;&#8212;<br \/>http:\/\/lea-linux.org\/reseau\/partfic\/proftpd.html <\/p>\n<p><strong>REDIRECTION SHELL :<\/strong><\/p>\n<p>http:\/\/www.nerdlabs.org\/documents\/shell_redirection.php <\/p>\n<p><strong>SAMBA :<\/strong><\/p>\n<p>http:\/\/ubuntustartguide.online.fr\/dev\/sambaserver.html <\/p>\n<p><strong>CHROOT bash -R :<\/strong><\/p>\n<p>http:\/\/www.miscmag.com\/articles\/full-page.php3?page=113<br \/>http:\/\/www.cgsecurity.org\/Articles\/proftpd.html<br \/>http:\/\/www.linuxfocus.org\/Francais\/January2002\/article225.shtml<br \/>http:\/\/www.pariscyber.com\/security\/chroot.php<br \/>http:\/\/www.hsc.fr\/ressources\/breves\/chroot-openssh.html.fr <\/p>\n<p><strong>POSTFIX :<\/strong><\/p>\n<p>http:\/\/christian.caleca.free.fr\/smtp\/installation_de_postfix.htm <br \/>http:\/\/www.linux-france.org\/article\/mail\/postfix-jaco\/ <br \/>http:\/\/www.miscmag.com\/articles\/full-page.php3?page=113 <\/p>\n<p><strong>VPN :<\/strong><\/p>\n<p>http:\/\/sylvestre.ledru.info\/linux.php <\/p>\n<p><strong>SHELL UNIX :<\/strong><\/p>\n<p>http:\/\/www.shellunix.com\/ <br \/>http:\/\/www.e-atlantide.com\/securite\/sun.htm<\/p>\n<p><strong>CALCUL SHELL :<\/strong><\/p>\n<p>NB_RES_100=`expr 100 * $&shy;&shy;&shy;&shy;&shy;&shy;&shy;&shy;NB_RESUMES`<br \/>POURCENTAGE=`expr $&shy;&shy;&shy;&shy;&shy;&shy;&shy;&shy;NB_RES_100 \/ $&shy;&shy;&shy;&shy;&shy;&shy;&shy;&shy;NB_LIGNES` <\/p>\n<p><strong>COULEUR HEXA WEB HTML :<\/strong><\/p>\n<p>http:\/\/membres.lycos.fr\/ninouslechat\/couleurhexa.html<\/p>\n<p><strong>Lister les tailles des ss r&eacute;p&eacute;rtoires en triant par taille :<\/strong><br \/>du -k | sort -nr <\/p>\n<p><strong>ANTI-VIRUS MESSAGERIE SYSTEM :<\/strong><\/p>\n<p>http:\/\/www.math.cnrs.fr\/mathrice\/mars.2004\/migration_sendmail_postfix.pdf<br \/>spam assassin<br \/>clam AV<br \/>postfix<br \/>amavisd-new<br \/>maildir<br \/>http:\/\/math.univ-lille1.fr\/lmsp\/<br \/>http:\/\/www.linux-france.org\/article\/mail\/postfix-jaco\/<br \/>http:\/\/lea-linux.org\/reseau\/postfix.html :<br \/>Postfix &lt;http:\/\/www.postfix.org\/&gt; (serveur smtp)<br \/>SpamAssassin &lt;http:\/\/www.spamassassin.org\/&gt; (filtrage spam)<br \/>Anomy Sanitizer &lt;http:\/\/mailtools.anomy.net\/&gt; (filtrage mails erron&eacute;s et douteux)<br \/>ClamAV &lt;http:\/\/www.clamav.net\/&gt; (antivirus)<br \/>UW-IMAP &lt;http:\/\/www.washington.edu\/imap\/&gt; (serveur pop3 et imap)<br \/>http:\/\/lists.ze-linux.org\/2004-03\/msg00025.html<br \/>http:\/\/www.system-linux.net\/config\/index1.html<br \/>http:\/\/www.system-linux.net\/index.php<br \/>http:\/\/poivron.org\/blog\/index.php\/2004\/08\/31\/6-spam_n_virus_filtering3<br \/>http:\/\/www.ijs.si\/software\/amavisd\/<br \/>http:\/\/eric.gerbier.free.fr\/email.html<br \/>http:\/\/www.gcolpart.com\/howto\/mail.php4<br \/>http:\/\/www.linux-sec.net\/Mail\/AntiVirus\/<br \/>http:\/\/www.amavis.org\/ : int&eacute;grer ds thunderbird<br \/>http:\/\/www.sophos.fr\/products\/sav\/ : anti virus <br \/>http:\/\/people.via.ecp.fr\/~alexis\/formation-linux\/apt.html<br \/>http:\/\/www.linux-france.org\/article\/mail\/postfix-jaco\/<br \/>http:\/\/lists.alphanet.ch\/pipermail\/gull\/2003-September\/001089.html<br \/>http:\/\/www.software-facilities.com\/mail-software\/messagewall.php<br \/>http:\/\/p3scan.sourceforge.net\/<br \/>http:\/\/www.clamav.net\/<br \/><strong><br \/>ROUTE :<\/strong> <\/p>\n<p>netstat -rn<br \/>route add default IP<br \/>\/etc\/defaultrouter<br \/>netstat -rn -I qfe0 -i 5 : check + resume des logs reseaux sur l&#39;interface<br \/>netstat -rn : routes actuelles<br \/>netstat -antu : ports ouverts<br \/>route add\/delete default ip <\/p>\n<p><strong>SYSLOG :<\/strong> <\/p>\n<p>tabulations entre les parametres<br \/>http:\/\/www.freebsddiary.org\/syslog.php<\/p>\n<p><strong>SED :<\/strong> <\/p>\n<p>&gt;sed &quot;s\/\/usr\/sbin\/tcpd\/\/opt\/alct\/sbin\/tcpd\/g&quot; \/var\/tmp\/inetd.conf &gt; \/var\/tmp\/inetd.conf_final<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unix Tips &amp; Tricks<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[8],"tags":[],"class_list":["post-111","post","type-post","status-publish","format-standard","hentry","category-informatique"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pWrTo-1N","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/www.lookit.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/111","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.lookit.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.lookit.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.lookit.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.lookit.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=111"}],"version-history":[{"count":0,"href":"http:\/\/www.lookit.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/111\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.lookit.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.lookit.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=111"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.lookit.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}