[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Additions on /etc/kde3/kdm/Xstartup



On 24-11-2004 00:06, Petter Reinholdtsen wrote:
> [Ralf Gesel|ensetter]
> 
>> #RG 10-2004: log login and turn off bell
>> echo $USER $HOSTNAME $DISPLAY `date` >>/var/log/SESSIONS.log
> 
> 
> This is not needed.  The last log (wtmp) will include info about the
> user sessions.  Run 'last' to get the list.

...and if you really want this (or other info) then use logger (debian
package bsdutils) to send it to syslog. That way it is easy for the
local sysadmin from a central place to redirect to another host, store
in a specific file or even (for some syslog daemons) send the message as
an email.

Have a look here for hints setting up a logging server:
http://www.campin.net/newlogcheck.html


 - Jonas

-- 
* Jonas Smedegaard - idealist og Internet-arkitekt
* Tlf.: +45 40843136  Website: http://dr.jones.dk/

 - Enden er nær: http://www.shibumi.org/eoti.htm



Reply to: