acua_logout
acua_logout gives you a way to tell ACUA that a user has
logged out so that they can immediately be marked as offline.
If acua_logout is not called, the user will be automatically
marked as offline by acua_updated in less
than one minute. acua_logout should be (but doesn't have to be)
executed when a user logs out. The reason acua_logout should be executed
on logout is because the user will not be able to login again before acua_updated
gets around to doing it's update. Believe it or not, this can happen
with dial-up connections, and has happened to me numerous times.
-k - don't kick the user off (only root can give this switch).
In the case of a PPP/PPPoE login, acua_logout should be called from
the /etc/ppp/ip-down script, and it should be passed the '-k' switch.
The procedure is very similar to the procedure for acua_login:
if [ "$6" == "1" ]; then
fi
You also need to change the AutoPPP line in /etc/mgetty/login.config
to look like so:
/AutoPPP/ - a_ppp
/usr/sbin/pppd auth -chap +pap login ipparam 1
In the case of a bash login, you can not really guarantee that a user will
run acua_logout, but you can put it in ~/.bash_logout and it will be ran
when the user loggs out. Also note however that the user can modify
this file so that acua_logout does not run, but that doesn't really matter.
Security Information:
If a user runs acua_logout from the prompt in an attempt to get themselves
marked as logged out, it will not work because acua_logout will kill all
of their processes.
acua_logout uses the same security checks as acua_login
at present and so it should be pretty secure. For more information
on the security checks, please look at the acua_login
documentation.
Robert Davidson