[EMAIL PROTECTED] wrote:

> How can a message automatically be sent to root as a result of someone
> logging in? This has nothing to do with logins created or monitored in
> the log files. It won't be necessary to tell me where it needs to be
> placed.

The simplest solution is a script which monitors the log file and
emails every line which matches a particular expression.

You can do it with e.g.

        tail -f /var/log/auth | fgrep -i login | (
          while read line ; do
            echo "$line" | mail -s 'login notification' root
          done
        )

except that the buffering performed by tail/fgrep will result in the
messages being delayed for some time.

> What files detail explanations about macros used in ftp (macdef) and
> other programs alike?

The ftp(1) manpage lists all of the commands which ftp supports. A
macro definition is just a list of commands.

-- 
Glynn Clements <[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to