OK well here's my question of the week...

I have recently brought a public webserver online, which includes ssh acess to itself to allow users to manage thier webspace.

Here's the rub: all the servies on this box are chrooted, including the ssh server they are logging in to, and the apache server thier pages are served up from. The /home direcory is mounted in multiple location to allow this.

So, when I have users logged in to my chrooted ssh server, the "w" ,"who" amd whatnot commands show only people logged in locally, or people logged in to the main box via an ssh connection on another port which is not chrooted.

I need a way to quickly tell who is logged in via a chrooted ssh shell, such as the output given with the "who" command"...

Any ideas?