1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
|
# Simple configuration file for notifyme.
# Please edit this file - it is just an example.
#
# Each directive in separate line, except '{' that can be
# proceeded with some identifier.
# "users:" "hosts:" and "ttys:" are reserved words.
#
# In messages following characters can be used:
# %u - username, %h - hostname, %t - tty
#
# Extended regular expressions can be used to specify
# user, host or tty
#
# General rule: first match wins.
# For example if "johnny" is in users section (which is first) and
# some.host.org is in host section and johnny just logged in
# from some.host.org then settings from "johnny" will be used.
######
# Global configuration.
# Each directive listed below can also be used in
# users/hosts/ttys sections and entry section, and it will override
# previous settings.
#
Logins yes # report logins
Logouts yes # and logouts
LoginBeep yes # make sound if login
LogoutBeep yes # make sound if logout
PrintWelcome yes # report logged users at program's start
CenterMsg no # center messages
LoginMsg "%u from %h arrived!"
LogoutMsg "%u logged out."
# message printed if it was last login
LastMsg "%u - no more logins."
# number of seconds to hold a message on the screen
HoldMsg 5
# This is only a fictional example of usage.
# Call external program if login occurs.
# "some_prog" may be for example a shell script that takes 3 arguments
# (login name, host, tty) and sends email.
#LoginExec "/path/to/some_prog %u %h %t"
# Call external program if logout occurs.
#LogoutExec "/path/to/some_prog %u %h %t"
######
# Watch following users
#
users:
# Only example. Doesn't change anything because it was set in globals
Logouts yes
john
betty {
# Don't report logouts for this particular user
Logouts no
LogoutMsg "My SweetHeart just left"
LoginMsg "Betty came from %h"
LastMsg "How pity, I'm alone"
LogoutBeep no
LoginBeep no
}
# Don't have to use braces here because it is only one directive
peter LoginMsg "Watch out! Boss is here!"
badboy {
PrintWelcome no
CenterMsg yes
HoldMsg 30
LoginMsg "Alert! BADBOY from %h on %t!"
}
######
# Watch logins and logouts made from following hosts
hosts:
Logouts no
.+.some.domain {
# It overrides previous setting
Logouts yes
LoginMsg "%u from %h is here."
}
#####
# Watch following terminals
ttys:
# Some of these settings are pointless because they were
# set in global configuration to the same values.
LoginBeep yes
LogoutBeep no
PrintWelcome yes
tty[1-9] {
LoginMsg "%u is on the CONSOLE (%t)."
}
# that's all.
|