urgrue <urgrue <at> tumsan.fi> writes: > > I don't think script will help you, as even if you get it working, your > users can just Ctrl-D out of it. Unless you trust your users. > Once upon a time I used ttysnoop: > http://freshmeat.net/projects/ttysnoop/ > > On 08/03/2005 01:38:10 PM, Md Shanto wrote: > > Hi all, > > > > I am trying to force "script" for logging all text I/O activities at > > the moment user logs in. Most of the users are running bash at this > > moment. > > > > Initially I tired with "ttyrec" a tty recorder and failed, as it says > > "Out of pty's - Terminated". Now, I tried something like below: [...] > > and assigning this script in /etc/passws. This script will log > > scripts > > with time stamp in /var/log/commlog/. > > > > what happen is: when user logs in the process becomes a loop and I > > see lot of script instances are running. I think (not sure) that script also tries to start the default shell for the user and calling the script in the process... Perhaps you could try a line like: /path/to/script ; exit at the end of your /etc/profile? Not sure if it'll work, though. HTH, HAND mvg, Guus - : send the line "unsubscribe linux-admin" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html