http://qs321.pair.com?node_id=544616


in reply to Re^2: log the ip of the executor
in thread log the ip of the executor

Well yeah... Naturally...

I'm assuming that the SSH-aspect of it all is securely setup. Even the fact that ssh is being used is an assumption.

The only way to circumevent evildoing like this, would be to look up the process-tree for the ssh-process that we got forked of off, and get the uid/pid that process is running under, and check netstat for the connection details I suppose...

But the setup itself is quite dangerous; menu.pl has to be VERY tight as it's running root... Hopefully the OP is using taint mode, and untainting properly...