RE: login session transcript
From: Alexandre Skyrme (alexandre.skyrme_at_ciphersec.com.br)
To: <firstname.lastname@example.org> Date: Wed, 29 Sep 2004 14:43:33 -0300
Your best bet would probably be to use SUDO instead of giving the vendor
direct access to the root account. Using SUDO you'll not only be able to
restrict the vendor's privileges but also generate an audit trail of his
actions. Besides it would require the vendor to specify exacly what
privileges he would effectively need.
Altering the user's shell or similar controls could be easily detected and
circumvented by the vendor, in case he desired to do so. You must rely on
mechanisms which cannot be compromised by using the privileged root account.
Even a trusted sitter (auditor) besides the vendor would probably be more
In case you'd rather stick with your solution, one tool that might help you
is ttyrec (http://namazu.org/~satoru/ttyrec).
-- Alexandre Skyrme Cipher - Segurança da Informação +55-21-2529-2629 www.ciphersec.com.br Esta mensagem eletrônica pode conter informações privilegiadas e/ou confidenciais, portanto fica o seu receptor notificado de que qualquer disseminação, distribuição ou cópia não autorizada é estritamente proibida. Se você recebeu esta mensagem indevidamente ou por engano, por favor, informe este fato ao remetente e a apague de seu computador imediatamente. This e-mail message may contain legally privileged and/or confidential information, therefore, the recipient is hereby notified that any unauthorized dissemination, distribution or copying is strictly prohibited. If you have received this e-mail message inappropriately or accidentally, please notify the sender and delete it from your computer immediately. -----Original Message----- From: Jonathan C. Detert [mailto:email@example.com] Sent: terça-feira, 28 de setembro de 2004 11:56 To: firstname.lastname@example.org Subject: login session transcript Hello, I need to give a vendor shell access to a freeBSD system I run, and worse yet, I need to give them root access. I want to know everything the vendor does while logged in. I'm thinking of making the vendor's login shell be 'script -q -a <somefilename>' but : a) i don't want the vendor to be able to delete the logfile b) it would be nice if the vendor wouldn't know his activity was being logged Does anyone have a better suggestion for me than to use script? Does anyone have an idea how to address points a) and b) ? Thanks -- Happy Landings, Jon Detert IT Systems Administrator, Milwaukee School of Engineering 1025 N. Broadway, Milwaukee, Wisconsin 53202