Re: 2 newb questions

"[email protected]" <[email protected]> Wed, 23 Mar 2005 01:18:44 +0100
Newsgroups gmane.os.freebsd.newbies
Message-ID <[email protected]>
On Tue, 22 Mar 2005 22:10:24 +0100
Anon <[email protected]> wrote:

> Hi im running freebsd 5.3 and I have some questions:
> 
> 1. how do I log ssh login attempts to a file? say /var/log/auth I have
>  read syslogd man page and I dont get it at all
> 

i'm using openssh-portable from ports, and it works fine,
perhaps you need this in sshd_config as default ?

SyslogFacility AUTH
LogLevel INFO


> 2. how do I get some kind of a system that "warns" me when a port is
> old  (there is a new in cvs database), example: I want to get an email
> when a  new version of the port "firefox" comes out

this is a possible script to use :

#!/bin/sh
/usr/local/sbin/portsclean -CD
/usr/local/bin/cvsup -g -L 2 /root/bin/ports-supfile
# /usr/local/sbin/portsdb -uU
# changed this (line above) because making the INDEX takes really long
cd /usr/ports/
make fetchindex
# these last 2 lines needs to be 1 line :
/usr/local/sbin/portversion -v | /usr/bin/grep needs | /usr/bin/mail -s
"Ports die niet up to date zijn" [email protected]

_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-newbies
To unsubscribe, send any mail to "[email protected]"