View previous topic :: View next topic |
Author |
Message |
Peregrine n00b
Joined: 16 Jun 2003 Posts: 67
|
Posted: Wed Aug 31, 2005 4:00 am Post subject: Logging in a chroot'd environment? |
|
|
Hi, I'm working on a shell server, and i'm aiming to use chroot to limit the users. One thing I am investigating is logging activity in the session. I'm wanting a way to keep audit of all commands run, that can't be modified by the users. Has anyone found any solutions for this? |
|
Back to top |
|
|
Crisis l33t
Joined: 10 Feb 2003 Posts: 613 Location: Portland, OR
|
Posted: Wed Aug 31, 2005 2:35 pm Post subject: |
|
|
Generally your best bet is to make a /dev/log socket in the chroot, and then configure your syslogger to read from the socket that's in the chroot in addition to the normal /dev/log socket. |
|
Back to top |
|
|
Peregrine n00b
Joined: 16 Jun 2003 Posts: 67
|
Posted: Wed Aug 31, 2005 2:46 pm Post subject: |
|
|
Thanks - that will work well with the patched version of bash I now have, which sends all commands run (along with the user id that ran them) to syslog |
|
Back to top |
|
|
|