11-18-2009
Track user commands
Hi,
I have a unix server and I am concerned about the security on that server.
I would like to be able to write a script that records all the commands that were typed at the command prompt before the user calls the 'history -c' command and deletes all the history.
I was thinking about firing or triggering that bacth script upon the call to history. Is this doable and if not are there any other alternatives?
Thanks --
10 More Discussions You Might Find Interesting
1. Programming
Can I do it like this?
if (strcmp(argv, "history")==0)
{
argv = "10";
execvp(argc,argv);
}
actually, it doesn't work,
How can I modify it?
Thanks (17 Replies)
Discussion started by: zhshqzyc
17 Replies
2. UNIX for Advanced & Expert Users
hi
I want to know how to save all the command used by all the used under a particular root with the time stamp in a file.
Eg:
User Name: UX10
Time: 10:56
Command: LS
User Name: UX23
Time: 10:59
Command: MORE abc.txt
-Anand (2 Replies)
Discussion started by: anandtharani
2 Replies
3. UNIX for Dummies Questions & Answers
Like the topic says, does anyone know if it is possible to check to see when an FTP only user has logged in? Because the shell is /bin/false and they are only using FTP to access the system doing a "finger" or "last" it says they have never logged in.
Is there a way to see when ftp users log in... (1 Reply)
Discussion started by: LordJezo
1 Replies
4. Shell Programming and Scripting
dear all ,
I m new to shell programming and I need your help.
Actually i want to keep track of all the commands executed in a bash prompt of users ,
very much in same manner as it is displayed when we run "history" command.
now the users are smart enough as they delete their history by... (6 Replies)
Discussion started by: xander
6 Replies
5. UNIX for Dummies Questions & Answers
Hi, i suddenly realized that a directory is deleted unfortunately there are many user have pervilages on this directory
is there a way to track the user who delete this directory
or atleast from now can i enable something so that i can track from now
I think there is way from... (2 Replies)
Discussion started by: crackgeek
2 Replies
6. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
The task is to measure the density of users that are logged on system. The program
should check that every 30... (7 Replies)
Discussion started by: petel1
7 Replies
7. AIX
I'm looking for a way to track commands that are run as root after a user runs sudo su - root. I have a profile set up for root that will track the commands by userid but if we change the shell it only stores it in that shells history file. (2 Replies)
Discussion started by: toor13
2 Replies
8. UNIX for Dummies Questions & Answers
Hi All
Please can you help me with the following issue:
A certain vendor installed an application in which for a user to log in; the user must use a user created/predefined by the application. And because this application has more than one user its difficult to track who did what and when,... (6 Replies)
Discussion started by: fretagi
6 Replies
9. UNIX for Advanced & Expert Users
Hi All
We have a job which writes files to a server at a particular time. The files will be created by a particular user ID
Today, during the execution of the job, it created a file to the server and the file sat on the server for sometime, but was deleted immediately at the end of the... (4 Replies)
Discussion started by: sparks
4 Replies
10. Shell Programming and Scripting
Hi
I need to track what commands run in login session in solaris whether it is root or any normal users in bash shell.
My actual requirement is that when a user (nomal/root) login into the system, whatever commands he run, it should log into file on specified path . I don't require command... (4 Replies)
Discussion started by: hb00
4 Replies
AUCTL(1) General Commands Manual AUCTL(1)
NAME
auctl - control various audio server parameters
SYNOPSYS
auctl [-audio servername] [-q] [command...]
DESCRIPTION
The auctl program can be used to control various audio server parameters. It is typically used when connecting up new devices, or to set
user preferences. If no command is specified on the program command line, auctl reads commands from the standard output. If the standard
input and standard output are both attached to a terminal, an interactive prompt is provided.
OPTIONS
The following options may be used with auctl:
-audio servername
This option specifies the Network Audio System server on which the files should be played.
-q This option indicates that no prompt should be given when reading commands from the standard input.
COMMANDS
The following commands may be used with auctl:
help This command prints a list of the commands that may be given.
set device id gain [=,+,-] percent
With =, this command sets the gain on the device specified by id to the indicated percentage, or alters it by the given number of
percentage points if + or - is used. If the id is a decimal number n, the nth device returned by the server (see auinfo) is used.
Otherwise, id should be a hexidecimal number specifying the resource identifier of the desired device.
set device id linemode = low
This command sets the linemode of the device specified by id to the lower setting appropriate for microphones.
set device id linemode = hi
This command sets the linemode of the device specified by id to the higher setting appropriate for CD players.
list device id gain
This command lists the gain of the specified device in the form needed to set it.
list device id linemode
This command lists the line mode of the specified device in the form needed to set it.
list device id
This command lists the gain and line mode of the specified device.
quit, exit, or ^D
Either of these commands or an end of file causes the program to exit.
ENVIRONMENT VARIABLES
The following environment variables are used by auctl:
AUDIOSERVER
This specifies the name of default audio server to contact if no name is explicitly given on the command line.
DISPLAY This specifies the name of an X Window System display that should be assumed to also have a corresponding Network Audio System
server.
SEE ALSO
nas(1), auplay(1), audial(1), audemo(1), autool(1)
COPYRIGHT
Copyright 1993, 1994 Network Computing Devices, Inc.
AUTHOR
Jim Fulton, Network Computing Devices, Inc.
1.9.3 AUCTL(1)