[Gllug] Shutdown Stopped
Walid Shaari
walid at melinux.com
Sat Oct 19 14:37:02 UTC 2002
On Sat, 2002-10-19 at 15:36, Dean Wilson wrote:
> ----- Original Message -----
> From: "Jason Clifford" <jason at ukpost.com>
>
>
> > > In python2.2 it is in the standard library os module, os.getlogin() as
> > > opposed to os.geteuid(),I am sure there is something similar in perl
> > > even if its written using cryptic symbols like $:-(
>
> > perl -e 'print getlogin;'
> Or $EUID and $UID in Bash.
>
> I've tried passing these in to the command called from inittab but i've
> think this is too late along to get the values i want. When the
> Ctrl-alt-delete is kicked off it is handled by inittab which runs as root
> and so when it passed the parameters to my command they are already set to
> root or '/' which is the user init runs under. I was hoping to be able to
> retrive them from $UID but its handeled by a process that really is root
> (Doh! Should have realised that) so that fails.
I have read somewhere that the honeynet project uses a customized bash
to enable key logging, it is an overkill but it is one of the host
security audit tools
Walid
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list