On Mon, Jul 30, 2001 at 05:32:05PM -0400, Crutcher Dunnavant <[EMAIL PROTECTED]>
wrote:
| ++ 30/07/01 08:26 -0700 - Harry Putnam:
| > The following message is a courtesy copy of an article
| > that has been posted to comp.unix.questions,comp.os.linux.security as well.
| >
| > Setup single user home machine running Redhat linux 7.1
| > Experimental things like trying special scripts out or security
| > related ideas can be captured by setting a special user account and
| > running typescript at login. However this is somewhat awkward and
| > a pita for various reasons.
| >
| > I wondered if there is some handy way to record a login session by
| > some other mechanism. Something where it happens more seamlessly so I
| > can login as the experimental user `exp' run my experiments and have a
| > full log of everthing I did.
|
| how about:
|
| su - $USER -c command 1> output 2> errror
|
| This requires you to be root, though. In general, 'su' and 'sudo' have
| many options you will want to look into. But it is doable.
Hard to make interactive stuff do the right thing with such methods.
Another approach would be to have the test user's .profile say:
logfile=$HOME/.log-`date '+%Y-%m-%d-%H:%M:%S'`
exec script -a $logfile
right at the bottom. That would get you a transcript of every log session.
I do this routinely when building things from source, see:
http://www.zip.com.au/~cs/scripts/logbuild
I find it very handy for tracking such things. Combined with a
trap history 0
in the .bashrc it's pretty neat, and very easy.
Cheers,
--
Cameron Simpson, DoD#743 [EMAIL PROTECTED] http://www.zip.com.au/~cs/
......you're off! Bottom of the crack, three, four smooth moves, put in a
piece, clip, clip, traverse...find that foothold...hang on...couple of
more moves, clip, clip, stretch, breathe in, get that foot up...layback,
move, move...getting pumped...clip...rest a bit...a few good buckets...rest..
get ready..get psyched...clip...layback...focus...form...pull...jam...doing
good....crux move...don't flail....pullllll....jammmmm....slap!...good...now
to the top...this time I'm gonna make it...just one more move....slopy!...
hand sliding off...no footholds....oh shit oh shit....peeling off...bleeding..
oh please not now...not again...coming off...oh shit...no, no....NO! &%#£!!..
..way pumped....do something!!..chin...HEADJAM...KNEE...BLOOD....YES....
TOP...................YEEEEEEEEEEEHAAAAAAAAAAAAAW!!!!!!!!!!!
REDPOINT! FINALLY!
- Esa-Pekka P{lvim{ki <[EMAIL PROTECTED]>
_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list