unix "script" command (Security)


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users unix "script" command (Security)
# 1  
Old 07-27-2002
unix "script" command (Security)

Has anyone had the opportunity to set up a profile utilizing the "script" command to capture input?

I am utilizing solaris 8 on sun servers.

I modified the /etc/profile to start "script" when the user logs in and stops upon log out. It will also follow the user when it traverses across systems.

The issue I am having is supressing the message when script starts and stops. ( Script started, file is typescript, Script done, file is typescript)
I don't want the users to know it is running.

If this is a duplicate post to anyone, (I didn't see any in FAQ) my apologies in advance.

Any thoughts are appreciated.


Krusty.
# 2  
Old 07-29-2002
Power

Smilie alread tried redirection of standard out to dev/null ?
>/dev/null
# 3  
Old 07-30-2002
Hammer & Screwdriver

Smilie
yepper....

I think because "script" gathers all of the info, the only way to get the comment stripped is to search the c code and recompile the binary. I am checking with my sun rep for the source.

Very interesting project though...
# 4  
Old 08-11-2002
Did u get any solution for this?
Even I was trying to get this done somehow...

Regards
Deepa
# 5  
Old 08-26-2002
redirect std out and std err

You should be able to redirect std out and std err to null.

2> &1 /dev/null OR 2> /dev/null ... 1> /dev/null

I can't remember the syntax, but that is close.

Smilie
# 6  
Old 08-26-2002
> /dev/null 2>&1

or

2>&1 > /dev/null

Has the effect of piping 2 (std error) to 1 (std out) and then piping 1 (now both) to /dev/null
# 7  
Old 10-06-2002
Update

I basically got the script.c binary and recompiled it to meet my needs.

The user will log into the system and never know that script is running.

Works great!

Thanks for all the replies.

-K
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

2. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

3. UNIX for Dummies Questions & Answers

Unix "look" Command "File too large" Error Message

I am trying to find lines in a text file larger than 3 Gb that start with a given string. My command looks like this: $ look "string" "/home/patrick/filename.txt" However, this gives me the following message: "look: /home/patrick/filename.txt: File too large" So, I have two... (14 Replies)
Discussion started by: shishong
14 Replies

4. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

5. Shell Programming and Scripting

Display the use of my script like "use some unix command or script"

Hi guys, just want to know if I want to display the use of my script like "use some unix command or script", what need to be done !!!!!!!!!!!! ny thoughts r appreciated...... (4 Replies)
Discussion started by: rrd1986
4 Replies

6. Shell Programming and Scripting

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

7. UNIX for Advanced & Expert Users

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

8. UNIX for Dummies Questions & Answers

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

9. UNIX for Dummies Questions & Answers

Unix "at" / "Cron" Command New Problem...Need help

Hi All, I am trying to schedule a one time job using the at command with the help of shell script for my project. The shell script should take a parameter as a command line argument from the at command itself. Is it possible to take a command line parameter for a shell script in the command... (3 Replies)
Discussion started by: Mohanraj
3 Replies

10. UNIX for Advanced & Expert Users

Commands on Digital Unix equivalent to for "top" and "sar" on other Unix flavour

Hi, We have a DEC Alpha 4100 Server with OSF1 Digital Unix 4.0. Can any one tell me, if there are any commands on this Unix which are equivalent to "top" and "sar" on HP-UX or Sun Solaris ? I am particularly interested in knowing the CPU Load, what process is running on which CPU, etc. ... (1 Reply)
Discussion started by: sameerdes
1 Replies
Login or Register to Ask a Question