Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Logging in a chroot'd environment?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Peregrine
n00b
n00b


Joined: 16 Jun 2003
Posts: 67

PostPosted: Wed Aug 31, 2005 4:00 am    Post subject: Logging in a chroot'd environment? Reply with quote

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
View user's profile Send private message
Crisis
l33t
l33t


Joined: 10 Feb 2003
Posts: 613
Location: Portland, OR

PostPosted: Wed Aug 31, 2005 2:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
Peregrine
n00b
n00b


Joined: 16 Jun 2003
Posts: 67

PostPosted: Wed Aug 31, 2005 2:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum