/l3/users/10-09-2007/nt-bsdnet/fbsd3.unix.nt/user :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 |
|
#make install
Installing /usr/local/lib/perl5/5.8.8/man/man3/Net::libnetFAQ.3 Installing /usr/local/lib/perl5/5.8.8/man/man3/Net::Domain.3 Installing /usr/local/lib/perl5/5.8.8/man/man3/Net::Cmd.3 Installing /usr/local/lib/perl5/5.8.8/man/man3/Net::FTP.3 Installing /usr/local/lib/perl5/5.8.8/man/man3/Net::Netrc.3 Installing /usr/local/lib/perl5/5.8.8/man/man3/Net::NNTP.3 Installing /usr/local/lib/perl5/5.8.8/man/man3/Net::Time.3 Writing /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/Net/.packlist ===> Compressing manual pages for p5-Net-1.19,1 ===> Registering installation for p5-Net-1.19,1 ^C |
#make install
SSLeay.c: In function `XS_Net__SSLeay_CTX_new_with_method': SSLeay.c:1870: warning: cast to pointer from integer of different size SSLeay.c:1876: warning: cast from pointer to integer of different size SSLeay.c: In function `XS_Net__SSLeay_CTX_free': SSLeay.c:1889: warning: cast to pointer from integer of different size SSLeay.c: In function `XS_Net__SSLeay_CTX_add_session': SSLeay.c:1904: warning: cast to pointer from integer of different size SSLeay.c:1905: warning: cast to pointer from integer of different size SSLeay.c: In function `XS_Net__SSLeay_CTX_remove_session': SSLeay.c:1923: warning: cast to pointer from integer of different size SSLeay.c:1924: warning: cast to pointer from integer of different size |
#make install
these network services to be started at boot time. /usr/local/etc/rc.d/mimedefang.sh-dist If there are vulnerabilities in these programs there may be a security risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern. For more information, and contact details about the security status of this software, see the following webpage: http://www.mimedefang.org/ |
#vim /usr/local/etc/clamd.conf
|
#ll
total 18 -rw-r--r-- 1 root wheel 2440 Aug 16 2006 Makefile -rw-r--r-- 1 root wheel 202 Aug 16 2006 distinfo drwxr-xr-x 2 root wheel 512 Sep 7 14:23 files -rw-r--r-- 1 root wheel 842 Apr 28 2003 pkg-descr -rw-r--r-- 1 root wheel 678 Dec 23 2004 pkg-install -rw-r--r-- 1 root wheel 628 Oct 26 2002 pkg-message -rw-r--r-- 1 root wheel 1145 Feb 23 2006 pkg-plist drwxr-xr-x 3 root wheel 512 Sep 14 11:25 work |
#ll /var/log/clamav/
202 .endif 203 204 205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false total 2 -rw-r----- 1 clamav clamav 877 Sep 14 11:01 freshclam.log |
#chown mailnull -R /var/run/clamav/
201 ${INSTALL} -m ${SHAREMODE} ${INSTALL_CF} /etc/mail/sendmail.cf 202 .endif 203 204 205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false chown: -R: No such file or directory |
#chown mailnull /var/run/clamav/
200 .if ${INSTALL_CF} != /etc/mail/sendmail.cf 201 ${INSTALL} -m ${SHAREMODE} ${INSTALL_CF} /etc/mail/sendmail.cf 202 .endif 203 204 205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false |
#chown mailnull /var/log/clamav/
200 .if ${INSTALL_CF} != /etc/mail/sendmail.cf 201 ${INSTALL} -m ${SHAREMODE} ${INSTALL_CF} /etc/mail/sendmail.cf 202 .endif 203 204 205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false |
#chown mailnull /var/log/clamav/freshclam.log
|
#/usr/local/etc/rc.d/clamav-
201 ${INSTALL} -m ${SHAREMODE} ${INSTALL_CF} /etc/mail/sendmail.cf 202 .endif 203 204 205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false clamav-clamd clamav-freshclam clamav-milter |
#/usr/local/etc/rc.d/clamav-clamd start
LibClamAV Warning: Signature for Trojan.Small-3184 requires new ClamAV version. Please update! LibClamAV Warning: Signature for Trojan.Small-3204 requires new ClamAV version. Please update! LibClamAV Warning: Signature for Trojan.Crypted-4 requires new ClamAV version. Please update! LibClamAV Warning: Signature for Trojan.Packed-75 requires new ClamAV version. Please update! LibClamAV Warning: Signature for Trojan.Small-3358 requires new ClamAV version. Please update! LibClamAV Warning: Signature for Trojan.Packed-89 requires new ClamAV version. Please update! LibClamAV Warning: Signature for Trojan.Zlob-203 requires new ClamAV version. Please update! LibClamAV Warning: Signature for Trojan.Small-3658 requires new ClamAV version. Please update! LibClamAV Warning: Signature for Trojan.Small-3663 requires new ClamAV version. Please update! LibClamAV Warning: Signature for Trojan.Packed-93 requires new ClamAV version. Please update! LibClamAV Warning: Signature for Trojan.Downloader-13402 requires new ClamAV version. Please update! |
#vim /etc/rc.conf
|
#freshclam
202 .endif 203 204 205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!). ERROR: Problem with internal logger. |
#ll /var/log/clamav/freshclam.log
201 ${INSTALL} -m ${SHAREMODE} ${INSTALL_CF} /etc/mail/sendmail.cf 202 .endif 203 204 205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false -rw-r----- 1 mailnull clamav 877 Sep 14 11:01 /var/log/clamav/freshclam.log |
#ll /var/log/clamav/freshclam.log
201 ${INSTALL} -m ${SHAREMODE} ${INSTALL_CF} /etc/mail/sendmail.cf 202 .endif 203 204 205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false -rw-r----- 1 mailnull clamav 877 Sep 14 11:01 /var/log/clamav/freshclam.log |
#ll /var/log/clamav/
203 204 205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false total 4 -rw-r----- 1 root clamav 707 Sep 14 11:29 clamd.log -rw-r----- 1 mailnull clamav 877 Sep 14 11:01 freshclam.log |
#ll /var/log/clamav
total 4 -rw-r----- 1 root clamav 707 Sep 14 11:29 clamd.log -rw-r----- 1 mailnull clamav 877 Sep 14 11:01 freshclam.log |
#ll /var/log/clamav/
203 204 205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false total 4 -rw-r----- 1 root clamav 707 Sep 14 11:29 clamd.log -rw-r----- 1 mailnull clamav 877 Sep 14 11:01 freshclam.log |
#ll -dar/log/clamav/
drwxr-xr-x 2 mailnull clamav 512 Sep 14 11:29 /var/log/clamav/ |
#cd /var/log/clamav/
200 .if ${INSTALL_CF} != /etc/mail/sendmail.cf 201 ${INSTALL} -m ${SHAREMODE} ${INSTALL_CF} /etc/mail/sendmail.cf 202 .endif 203 204 205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false |
#ll
total 4 -rw-r----- 1 root clamav 707 Sep 14 11:29 clamd.log -rw-r----- 1 mailnull clamav 877 Sep 14 11:01 freshclam.log |
#less freshclam.log
|
#ll
total 4 -rw-r----- 1 root clamav 707 Sep 14 11:29 clamd.log -rw-r----- 1 mailnull clamav 877 Sep 14 11:01 freshclam.log |
#su - maiilnull
201 ${INSTALL} -m ${SHAREMODE} ${INSTALL_CF} /etc/mail/sendmail.cf 202 .endif 203 204 205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false su: unknown login: maiilnull |
#su - mailull
This account is currently not available. |
#less /etc/pa
|
#less /etc/passwd|grep mail
203 204 205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false smmsp:*:25:25:Sendmail Submission User:/var/spool/clientmqueue:/usr/sbin/nologin mailnull:*:26:26:Sendmail Default User:/var/spool/mqueue:/usr/sbin/nologin cyrus:*:60:60:the cyrus mail server:/nonexistent:/usr/sbin/nologin |
#su - mailnull
201 ${INSTALL} -m ${SHAREMODE} ${INSTALL_CF} /etc/mail/sendmail.cf 202 .endif 203 204 205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false This account is currently not available. |
#freshclam -u mailnull
ClamAV update process started at Fri Sep 14 11:35:56 2007 WARNING: Your ClamAV installation is OUTDATED! WARNING: Local version: 0.88.5 Recommended version: 0.91.2 DON'T PANIC! Read http://www.clamav.net/faq.html main.cvd is up to date (version: 44, sigs: 133163, f-level: 20, builder: sven) WARNING: Your ClamAV installation is OUTDATED! WARNING: Current functionality level = 9, recommended = 20 DON'T PANIC! Read http://www.clamav.net/faq.html ERROR: Can't create new file ./clamav-850f5cb36ae91578 in /var/db/clamav ERROR: The database directory must be writable for UID 26 or GID 26 ERROR: Can't download daily.cvd from database.clamav.net (IP: 62.133.206.90) |
#chown mailnull /var/db/clamav/
200 .if ${INSTALL_CF} != /etc/mail/sendmail.cf 201 ${INSTALL} -m ${SHAREMODE} ${INSTALL_CF} /etc/mail/sendmail.cf 202 .endif 203 204 205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false |
#chown mailnull /var/db/clamav/*
|
#freshclam -u mailnull
main.cvd is up to date (version: 44, sigs: 133163, f-level: 20, builder: sven) WARNING: Your ClamAV installation is OUTDATED! WARNING: Current functionality level = 9, recommended = 20 DON'T PANIC! Read http://www.clamav.net/faq.html Downloading daily.cvd [*] daily.cvd updated (version: 4271, sigs: 19600, f-level: 21, builder: ccordes) WARNING: Your ClamAV installation is OUTDATED! WARNING: Current functionality level = 9, recommended = 21 DON'T PANIC! Read http://www.clamav.net/faq.html Database updated (152763 signatures) from database.clamav.net (IP: 212.7.0.71) Clamd successfully notified about the update. |
#vim /usr/local/etc/mimedefang/mimedefang-filter
|
#pkg_info -Lx defang
Information for mimedefang-2.57: Files: /usr/local/man/man5/mimedefang-filter.5.gz /usr/local/man/man7/mimedefang-notify.7.gz /usr/local/man/man7/mimedefang-protocol.7.gz /usr/local/man/man8/mimedefang.8.gz /usr/local/man/man8/mimedefang.pl.8.gz /usr/local/man/man8/mimedefang-multiplexor.8.gz /usr/local/man/man8/md-mx-ctrl.8.gz /usr/local/man/man8/watch-mimedefang.8.gz ... /usr/local/share/doc/mimedefang/README.SPAMASSASSIN /usr/local/share/doc/mimedefang/README.SOPHIE /usr/local/share/doc/mimedefang/README.NONROOT /usr/local/share/doc/mimedefang/README.SECURITY /usr/local/share/doc/mimedefang/README.TRU64 /usr/local/share/doc/mimedefang/README.IRIX /usr/local/share/doc/mimedefang/README.VEXIRA /usr/local/share/examples/mimedefang/suggested-minimum-filter-for-windows-clients /usr/local/share/examples/mimedefang/stream-by-domain-filter /usr/local/share/examples/mimedefang/README |
#pkg_info -Lx defang|grep / |while read; amd $file /dev/nul
200 .if ${INSTALL_CF} != /etc/mail/sendmail.cf 201 ${INSTALL} -m ${SHAREMODE} ${INSTALL_CF} /etc/mail/sendmail.cf 202 .endif 203 204 205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false |
#pkg_info -Lx defang|grep / |while read;
|
#pkg_info -Lx defang|grep / |while read file;
le /dev/null donefang|grep / |while read file; do grep /var/run/clamav/clamd $fil > ; bash: syntax error near unexpected token `;' |
#ls -l /var/run/clamav/
203 204 205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false total 2 srwxrwxrwx 1 mailnull clamav 0 Sep 14 11:29 clamd -rw-rw---- 1 mailnull clamav 5 Sep 14 11:29 clamd.pid |
#vim /etc/mail
|
#vim /etc/mail
|
#vim /etc/mail/
|
#vim /etc/mail/host1.taras.unix.nt.mc
|
#/etc/mail/make
bash: /etc/mail/make: No such file or directory |
#cd /etc/mail/
200 .if ${INSTALL_CF} != /etc/mail/sendmail.cf 201 ${INSTALL} -m ${SHAREMODE} ${INSTALL_CF} /etc/mail/sendmail.cf 202 .endif 203 204 205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false |
#make
/usr/bin/m4 -D_CF_DIR_=/usr/share/sendmail/cf/ /usr/share/sendmail/cf/m4/cf.m4 host1.taras.unix.nt.mc > host1.taras.unix.nt.cf |
#cp host1.taras.unix.nt.cf sendmail.cf
200 .if ${INSTALL_CF} != /etc/mail/sendmail.cf 201 ${INSTALL} -m ${SHAREMODE} ${INSTALL_CF} /etc/mail/sendmail.cf 202 .endif 203 204 205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false |
#/etc/rc.d/sendmail restart
203 204 205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false Stopping sendmail. Starting sendmail. WARNING: Xmimedefang: local socket name /var/spool/MIMEDefang/mimedefang.sock missing |
#less /var/spool/MIMEDefang/
|
#vim /usr/local/etc/mimedefang/mimedefang-filter
|
#vim /usr/local/etc/rc.d/mimedefang.sh-dist
|
#vim /usr/local/etc/rc.d/mimedefang.sh
|
#/usr/local/etc/rc.d/mimedefang.sh start
Starting mimedefang-multiplexor: [ OK ] Starting mimedefang: [ OK ] |
#ls -l /var/spool/MIMEDefang/
total 4 -rw-r----- 1 mailnull wheel 6 Sep 14 11:48 mimedefang-multiplexor.pid srw------- 1 mailnull wheel 0 Sep 14 11:48 mimedefang-multiplexor.sock -rw-r----- 1 mailnull wheel 6 Sep 14 11:48 mimedefang.pid srwxr-x--- 1 mailnull wheel 0 Sep 14 11:48 mimedefang.sock |
#/etc/rc.d/sendmail restart
Stopping sendmail. Starting sendmail. |
#vim /usr/local/etc/mimedefang/mimedefang-filter
|
#/usr/local/etc/rc.d/mimedefang.sh restart
205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false Shutting down mimedefang: [ OK ] Shutting down mimedefang-multiplexor: [ OK ] Waiting for daemons to exit... Starting mimedefang-multiplexor: [ OK ] Starting mimedefang: [ OK ] |
#/etc/rc.d/sendmail restart
Stopping sendmail. Starting sendmail. |
#/usr/local/etc/rc.d/clamav-clamd restart
LibClamAV Warning: Signature for Trojan.Small-3184 requires new ClamAV version. Please update! LibClamAV Warning: Signature for Trojan.Small-3204 requires new ClamAV version. Please update! LibClamAV Warning: Signature for Trojan.Crypted-4 requires new ClamAV version. Please update! LibClamAV Warning: Signature for Trojan.Packed-75 requires new ClamAV version. Please update! LibClamAV Warning: Signature for Trojan.Small-3358 requires new ClamAV version. Please update! LibClamAV Warning: Signature for Trojan.Packed-89 requires new ClamAV version. Please update! LibClamAV Warning: Signature for Trojan.Zlob-203 requires new ClamAV version. Please update! LibClamAV Warning: Signature for Trojan.Small-3658 requires new ClamAV version. Please update! LibClamAV Warning: Signature for Trojan.Small-3663 requires new ClamAV version. Please update! LibClamAV Warning: Signature for Trojan.Packed-93 requires new ClamAV version. Please update! LibClamAV Warning: Signature for Trojan.Downloader-13402 requires new ClamAV version. Please update! |
#vim /usr/local/etc/mimedefang/sa-mimedefang.cf
|
#/usr/local/etc/rc.d/mimedefang.sh restart
205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false Shutting down mimedefang: [ OK ] Shutting down mimedefang-multiplexor: [ OK ] Waiting for daemons to exit...... Starting mimedefang-multiplexor: [ OK ] Starting mimedefang: [ OK ] |
#echo viagra | mail -s "SPAM test" user@taras.unix.nt
200 .if ${INSTALL_CF} != /etc/mail/sendmail.cf 201 ${INSTALL} -m ${SHAREMODE} ${INSTALL_CF} /etc/mail/sendmail.cf 202 .endif 203 204 205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false |
#echo viagra | mail -s "SPAM test" user@andreynt
200 .if ${INSTALL_CF} != /etc/mail/sendmail.cf 201 ${INSTALL} -m ${SHAREMODE} ${INSTALL_CF} /etc/mail/sendmail.cf 202 .endif 203 204 205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false |
#echo viagra | mail -s "SPAM test" user@andrey.unix.nt
200 .if ${INSTALL_CF} != /etc/mail/sendmail.cf 201 ${INSTALL} -m ${SHAREMODE} ${INSTALL_CF} /etc/mail/sendmail.cf 202 .endif 203 204 205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false |
#echo viagra | mail -s "SPAM test" user@andrey.unix.nt
200 .if ${INSTALL_CF} != /etc/mail/sendmail.cf 201 ${INSTALL} -m ${SHAREMODE} ${INSTALL_CF} /etc/mail/sendmail.cf 202 .endif 203 204 205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false |
#echo http://sex.comt" user@andrey.unix.nt
200 .if ${INSTALL_CF} != /etc/mail/sendmail.cf 201 ${INSTALL} -m ${SHAREMODE} ${INSTALL_CF} /etc/mail/sendmail.cf 202 .endif 203 204 205 install-submit-cf: ${INSTALL_SUBMIT_CF} 206 .ifdef SENDMAIL_SET_USER_ID 207 @echo ">>> ERROR: You should not create a submit.cf file if you are 208 @echo " set-user-ID sendmail binary (SENDMAIL_SET_USER_ID 209 @echo " in make.conf)." 210 @false |
#vim /usr/local/etc/mimedefang/mimedefang-filter
|
#/usr/local/etc/rc.d/mimedefang.sh restart
Shutting down mimedefang: [ OK ] Shutting down mimedefang-multiplexor: [ OK ] Waiting for daemons to exit..^[[A^[[A. Starting mimedefang-multiplexor: [ OK ] Starting mimedefang: [ OK ] |
#/usr/local/etc/rc.d/clamav-clamd restart
LibClamAV Warning: Signature for Trojan.Small-3184 requires new ClamAV version. Please update! LibClamAV Warning: Signature for Trojan.Small-3204 requires new ClamAV version. Please update! LibClamAV Warning: Signature for Trojan.Crypted-4 requires new ClamAV version. Please update! LibClamAV Warning: Signature for Trojan.Packed-75 requires new ClamAV version. Please update! LibClamAV Warning: Signature for Trojan.Small-3358 requires new ClamAV version. Please update! LibClamAV Warning: Signature for Trojan.Packed-89 requires new ClamAV version. Please update! LibClamAV Warning: Signature for Trojan.Zlob-203 requires new ClamAV version. Please update! LibClamAV Warning: Signature for Trojan.Small-3658 requires new ClamAV version. Please update! LibClamAV Warning: Signature for Trojan.Small-3663 requires new ClamAV version. Please update! LibClamAV Warning: Signature for Trojan.Packed-93 requires new ClamAV version. Please update! LibClamAV Warning: Signature for Trojan.Downloader-13402 requires new ClamAV version. Please update! |
#/etc/rc.d/sendmail restart
Stopping sendmail. Starting sendmail. |
#echo http://sex.com | mail -s "test" user@taras.nt
|
#echo http://sex.com | mail -s "test" user@andrey.unix.nt
0:01, xdelay=00:00:01, mailer=re 566 Message accepted for deliver tladdr=root (0/0), delay=00:00:0 Sep 14 12:17:34 host1 sm-mta[595 2.0.0, stat=Sent (l8E9OCum059894 t> (1001/0), delay=00:00:01, xde Sep 14 12:24:12 host1 sendmail[5 92412.GA59889@host1.andrey.unix. Sep 14 12:24:12 host1 sm-mta[598 s=1, msgid=<20070914092412.GA598 Sep 14 12:24:12 host1 mimedefang drey.unix.nt>,<user@andrey.unix. Sep 14 12:24:12 host1 mimedefang |
#tcpdump -i em0
13:14:27.762769 IP host22.unix.nt > ya.ru: ICMP echo request, id 12307, seq 8, length 64 13:14:27.862726 IP ya.ru > host22.unix.nt: ICMP echo reply, id 12307, seq 8, length 64 13:14:28.546735 IP host22.unix.nt.57439 > a22.ios.ba.nextra.sk.3128: S 3741931226:3741931226(0) win 65535 <mss 1460,nop,wscale 1,nop,nop,timestamp 14994015 0,sackOK,eol> 13:14:28.705941 arp who-has host22.unix.nt tell host180.unix.nt 13:14:28.705997 arp reply host22.unix.nt is-at 00:07:e9:3c:2c:15 (oui Unknown) 13:14:28.763748 IP host22.unix.nt > ya.ru: ICMP echo request, id 12307, seq 9, length 64 13:14:28.780141 802.1d config 8001.00:0a:b8:ab:eb:80.8017 root 8001.00:0a:b8:ab:eb:80 pathcost 0 age 0 max 20 hello 2 fdelay 15 13:14:28.886078 IP ya.ru > host22.unix.nt: ICMP echo reply, id 12307, seq 9, length 64 13:14:29.705111 IP host22.unix.nt.54813 > i.root-servers.net.domain: 44977 [1au] PTR? 59.29.12.202.in-addr.arpa. (54) 13:14:29.764729 IP host22.unix.nt > ya.ru: ICMP echo request, id 12307, seq 10, length 64 ... 13:14:47.285176 IP host180.unix.nt.domain > host22.unix.nt.54813: 41774 1/3/5 (224) 13:14:47.291095 IP host22.unix.nt.54813 > host180.unix.nt.domain: 20887+ [1au] PTR? 131.28.12.202.in-addr.arpa. (55) 13:14:47.710405 IP host180.unix.nt.domain > host22.unix.nt.54813: 20887 1/3/5 (225) 13:14:47.715346 IP host22.unix.nt.54813 > host180.unix.nt.domain: 35614+ [1au] PTR? 200.5.50.203.in-addr.arpa. (54) 13:14:48.828195 802.1d config 8001.00:0a:b8:ab:eb:80.8017 root 8001.00:0a:b8:ab:eb:80 pathcost 0 age 0 max 20 hello 2 fdelay 15 ^C^C ^C13:14:49.716910 IP host22.unix.nt.54813 > 198.32.64.12.domain: 41693 [1au] PTR? 200.5.50.203.in-addr.arpa. (54) 212 packets captured 302 packets received by filter 0 packets dropped by kernel |
#echo viagra | mail -s "SPAM test" user@andrey.unix.nt
|
#cd /usr/ports/www/sq
2.0.0, stat=Sent (l8E9OCum059894 t> (1001/0), delay=00:00:01, xde Sep 14 12:24:12 host1 sendmail[5 92412.GA59889@host1.andrey.unix. Sep 14 12:24:12 host1 sm-mta[598 s=1, msgid=<20070914092412.GA598 Sep 14 12:24:12 host1 mimedefang drey.unix.nt>,<user@andrey.unix. Sep 14 12:24:12 host1 mimedefang sqstat/ squid_radius_auth/ squidpurge/ squishdot/ squid/ squidclients/ squidtimes/ squid26/ squidguard/ squirm/ |
#cd /usr/ports/www/squid
|
#ll
total 24 -rw-r--r-- 1 root wheel 18300 Jul 11 2006 Makefile -rw-r--r-- 1 root wheel 438 Jul 11 2006 distinfo drwxr-xr-x 2 root wheel 512 Sep 7 14:22 files -rw-r--r-- 1 root wheel 648 Nov 1 2005 pkg-descr |
#make install
ICAP support enabled PF Transparent Proxy enabled Hostname sanity checks enabled Enabling the use of underscores in host names Auth scheme modules built: basic ntlm digest Basic auth helpers built: NCSA PAM MSNT SMB winbind YP NTLM auth helpers built: SMB winbind Digest auth helpers built: password External acl helpers built: ip_user unix_group wbinfo_group winbind_group unlinkd enabled checking how to run the C preprocessor... cc -E |
#vim /etc/rc.conf
|
#sockstat -4l|grep :3128
0:01, xdelay=00:00:01, mailer=re 566 Message accepted for deliver tladdr=root (0/0), delay=00:00:0 Sep 14 12:17:34 host1 sm-mta[595 2.0.0, stat=Sent (l8E9OCum059894 t> (1001/0), delay=00:00:01, xde Sep 14 12:24:12 host1 sendmail[5 92412.GA59889@host1.andrey.unix. Sep 14 12:24:12 host1 sm-mta[598 s=1, msgid=<20070914092412.GA598 Sep 14 12:24:12 host1 mimedefang drey.unix.nt>,<user@andrey.unix. Sep 14 12:24:12 host1 mimedefang |
#squid -z
566 Message accepted for deliver tladdr=root (0/0), delay=00:00:0 Sep 14 12:17:34 host1 sm-mta[595 2.0.0, stat=Sent (l8E9OCum059894 t> (1001/0), delay=00:00:01, xde Sep 14 12:24:12 host1 sendmail[5 92412.GA59889@host1.andrey.unix. Sep 14 12:24:12 host1 sm-mta[598 s=1, msgid=<20070914092412.GA598 Sep 14 12:24:12 host1 mimedefang drey.unix.nt>,<user@andrey.unix. Sep 14 12:24:12 host1 mimedefang 2007/09/14 12:58:23| Creating Swap Directories |
#ll /var/spool/
total 20 drwx------ 2 mailnull wheel 512 Sep 14 11:25 MD-Quarantine drwx--x--- 2 mailnull wheel 512 Sep 14 12:03 MIMEDefang drwxrwx--- 2 smmsp smmsp 512 Sep 14 12:32 clientmqueue drwxr-xr-x 3 root daemon 512 Sep 7 14:56 cups drwxrwxr-x 2 uucp dialer 512 Sep 14 09:04 lock drwxr-xr-x 2 root daemon 512 Jan 12 2007 lpd drwxr-xr-x 2 root daemon 512 Sep 14 12:33 mqueue drwx------ 2 root daemon 512 Jan 12 2007 opielocks drwxr-xr-x 3 root daemon 512 Sep 7 14:18 output drwxr-xr-x 2 spamd spamd 512 Sep 14 11:24 spamd |
#vim /usr/local/etc/squid/squid.conf
|
#ll /usr/local/squid/cache/
total 64 drwxr-xr-x 258 squid squid 3584 Sep 14 12:58 00 drwxr-xr-x 258 squid squid 3584 Sep 14 12:58 01 drwxr-xr-x 258 squid squid 3584 Sep 14 12:58 02 drwxr-xr-x 258 squid squid 3584 Sep 14 12:58 03 drwxr-xr-x 258 squid squid 3584 Sep 14 12:58 04 drwxr-xr-x 258 squid squid 3584 Sep 14 12:58 05 drwxr-xr-x 258 squid squid 3584 Sep 14 12:58 06 drwxr-xr-x 258 squid squid 3584 Sep 14 12:58 07 drwxr-xr-x 258 squid squid 3584 Sep 14 12:58 08 drwxr-xr-x 258 squid squid 3584 Sep 14 12:58 09 drwxr-xr-x 258 squid squid 3584 Sep 14 12:58 0A drwxr-xr-x 258 squid squid 3584 Sep 14 12:58 0B drwxr-xr-x 258 squid squid 3584 Sep 14 12:58 0C drwxr-xr-x 258 squid squid 3584 Sep 14 12:58 0D drwxr-xr-x 258 squid squid 3584 Sep 14 12:58 0E drwxr-xr-x 258 squid squid 3584 Sep 14 12:58 0F |
#/usr/local/etc/rc.d/squid start
Starting squid. |
#sockstat -4l | grep :3128
squid squid 70196 11 tcp4 *:3128 *:* |
#vim /usr/local/etc/squid/squid.conf
|
#eg(^#|^\ $)' /usr/local/etc/squid/squid.conf |cat -s | les
|
#e
|
#egr(^#|^\ $)' /usr/local/etc/squid/squid.conf |cat -s | le
|
#vim /usr/local/etc/squid/squid.conf
|
#vim /usr/local/etc/squid/squid.conf
|
#/usr/local/etc/rc.d/squid restart
2.0.0, stat=Sent (l8E9OCum059894 t> (1001/0), delay=00:00:01, xde Sep 14 12:24:12 host1 sendmail[5 92412.GA59889@host1.andrey.unix. Sep 14 12:24:12 host1 sm-mta[598 s=1, msgid=<20070914092412.GA598 Sep 14 12:24:12 host1 mimedefang drey.unix.nt>,<user@andrey.unix. Sep 14 12:24:12 host1 mimedefang Stopping squid. Waiting for PIDS: 70189 70196. Starting squid. |
#/usr/local/sbin/squid -k reconfigure
0:01, xdelay=00:00:01, mailer=re 566 Message accepted for deliver tladdr=root (0/0), delay=00:00:0 Sep 14 12:17:34 host1 sm-mta[595 2.0.0, stat=Sent (l8E9OCum059894 t> (1001/0), delay=00:00:01, xde Sep 14 12:24:12 host1 sendmail[5 92412.GA59889@host1.andrey.unix. Sep 14 12:24:12 host1 sm-mta[598 s=1, msgid=<20070914092412.GA598 Sep 14 12:24:12 host1 mimedefang drey.unix.nt>,<user@andrey.unix. Sep 14 12:24:12 host1 mimedefang |
#/usr/local/etc/rc.d/squid restart
Stopping squid. Waiting for PIDS: 70343 70350. Starting squid. |
#vim /usr/local/etc/squid/squid.conf
|
#ping ya.ru
PING ya.ru (87.250.251.8): 56 data bytes 64 bytes from 87.250.251.8: icmp_seq=0 ttl=53 time=100.068 ms 64 bytes from 87.250.251.8: icmp_seq=1 ttl=53 time=105.864 ms 64 bytes from 87.250.251.8: icmp_seq=2 ttl=53 time=104.619 ms ^C --- ya.ru ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 100.068/103.517/105.864/2.491 ms |
#ping ya.ru
PING ya.ru (213.180.204.8): 56 data bytes 64 bytes from 213.180.204.8: icmp_seq=0 ttl=53 time=102.929 ms 64 bytes from 213.180.204.8: icmp_seq=1 ttl=53 time=102.509 ms 64 bytes from 213.180.204.8: icmp_seq=2 ttl=53 time=115.967 ms 64 bytes from 213.180.204.8: icmp_seq=3 ttl=53 time=102.267 ms 64 bytes from 213.180.204.8: icmp_seq=4 ttl=53 time=106.916 ms 64 bytes from 213.180.204.8: icmp_seq=5 ttl=53 time=101.799 ms 64 bytes from 213.180.204.8: icmp_seq=6 ttl=53 time=103.804 ms 64 bytes from 213.180.204.8: icmp_seq=7 ttl=53 time=100.951 ms 64 bytes from 213.180.204.8: icmp_seq=8 ttl=53 time=100.084 ms 64 bytes from 213.180.204.8: icmp_seq=9 ttl=53 time=122.456 ms 64 bytes from 213.180.204.8: icmp_seq=10 ttl=53 time=110.722 ms ^C --- ya.ru ping statistics --- 12 packets transmitted, 11 packets received, 8% packet loss round-trip min/avg/max/stddev = 100.084/106.400/122.456/6.809 ms |
#pfctl -d
No ALTQ support in kernel ALTQ related functions disabled pf disabled |
#tcpdump -i em0|grep 3128
13:15:37.236585 IP host22.unix.nt.63792 > a22.ios.ba.nextra.sk.3128: S 2146669157:2146669157(0) win 65535 <mss 1460,nop,wscale 1,nop,nop,timestamp 15062706 0,sackOK,eol> 13:15:40.236291 IP host22.unix.nt.63792 > a22.ios.ba.nextra.sk.3128: S 2146669157:2146669157(0) win 65535 <mss 1460,nop,wscale 1,nop,nop,timestamp 15065706 0,sackOK,eol> 13:15:43.436244 IP host22.unix.nt.63792 > a22.ios.ba.nextra.sk.3128: S 2146669157:2146669157(0) win 65535 <mss 1460,nop,wscale 1,nop,nop,timestamp 15068906 0,sackOK,eol> 13:15:46.636183 IP host22.unix.nt.63792 > a22.ios.ba.nextra.sk.3128: S 2146669157:2146669157(0) win 65535 <mss 1460,sackOK,eol> 13:15:49.836102 IP host22.unix.nt.63792 > a22.ios.ba.nextra.sk.3128: S 2146669157:2146669157(0) win 65535 <mss 1460,sackOK,eol> 13:15:53.036035 IP host22.unix.nt.63792 > a22.ios.ba.nextra.sk.3128: S 2146669157:2146669157(0) win 65535 <mss 1460,sackOK,eol> 13:15:59.235913 IP host22.unix.nt.63792 > a22.ios.ba.nextra.sk.3128: S 2146669157:2146669157(0) win 65535 <mss 1460,sackOK,eol> ^C264 packets captured 273 packets received by filter 0 packets dropped by kernel |
Время первой команды журнала | 11:13:50 2007- 9-14 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:15:02 2007- 9-14 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 12.87 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.02 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.83 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008