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

Re: Log on as root. warning



* Rob Weir (rweir@ertius.org) [030430 08:30]:
> On Wed, Apr 30, 2003 at 01:32:12AM +0200, David Jardine wrote:
> > On Wed, Apr 30, 2003 at 03:28:37AM +1000, bob parker wrote:
> > >                                                the problem with logging in as 
> > > root means that everything you do is done silently.
> > > 
> > > When you `sudo whatever command` your actions will be logged, so if you do 
> > > stuff anything you can view the logs to see what you did.
> > 
> > Is this something more than bash_history?
> 
> Yes.  It goes to /var/log/auth.log.

Not only that, it shows who did it, when they did it, what directory
they were in.  Showing the working directory is the really nice part,
IMHO.

> Apr 30 23:09:31 thebox sudo:      rob : TTY=pts/19 ; PWD=/home/rob/ ; USER=root ; COMMAND=/bin/ls

Ah yes, like that =)

good times,
Vineet
-- 
http://www.doorstop.net/
-- 
"Those who desire to give up freedom in order to gain security will not
have, nor do they deserve, either one."  --President Thomas Jefferson

Attachment: pgp7fqZJjMiRu.pgp
Description: PGP signature


Reply to: