LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Alternative to the script command ... ??? (https://www.linuxquestions.org/questions/linux-security-4/alternative-to-the-script-command-761249/)

newbie01.linux 10-11-2009 08:55 PM

Alternative to the script command ... ???
 
Hi,

We are wanting to have some sort of a Linux/UNIX evaluation and want to be able to trap commands ran by the prospective candidate?

We've thought about inserting the script command in the login profile. That seems to work even though there is some binary character on the output of the script command and it does seem a little bit out of whack if the user uses vi.

Is there anyway around this or is there an alternative to using the script command?

Any response will be very much appreciated. Thanks in advance.

FragInHell 10-11-2009 10:40 PM

you could look at rootsh although used for sudo normally it might give you what you need.
It logs all output/commands etc to syslog.

unSpawn 10-12-2009 10:20 AM

Quote:

Originally Posted by FragInHell (Post 3716001)
It logs all output/commands etc to syslog.

Or to file: it's configurable.


All times are GMT -5. The time now is 04:46 AM.