in reply to wrapping any given shell
Is there any reason you can't use some form of process accounting instead? This is supported by most any Unix, and is generally the accepted way of recording this type of information. Using syslog seems messy, and it won't catch cases where they execute commands via other commands. What's to stop them from executing /bin/sh on their own, completely circumventing your shell?
If you go the "patch the shell" route, you'll also want to put in some logic to log only interactive sessions, else every shell script will get each line logged to syslog. There's a whole lot of things like this you'll want to be aware of. Process accounting seems like a much cleaner method.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: wrapping any given shell
by dshahin (Pilgrim) on Feb 07, 2001 at 03:08 UTC | |
by Fastolfe (Vicar) on Feb 07, 2001 at 03:13 UTC | |
by dshahin (Pilgrim) on Feb 07, 2001 at 03:28 UTC | |
by Fastolfe (Vicar) on Feb 07, 2001 at 03:32 UTC | |
|
Re: Re: wrapping any given shell
by a (Friar) on Feb 07, 2001 at 10:14 UTC | |
by Fastolfe (Vicar) on Feb 07, 2001 at 21:31 UTC | |
by dshahin (Pilgrim) on Feb 09, 2001 at 06:08 UTC | |
by Fastolfe (Vicar) on Feb 09, 2001 at 08:32 UTC |