08-02-2017
History with Session info
Hello Unix Gurus,
I am in the need to capture the terminal info a command was executed from in the history. Currently history lists only the time and command, but does not list the terminal that can help associate the command to an individual.
So my ask is - is there a way to capture/append the terminal info (we can map the terminal to the connecting session/user form the authlog or similar) to the history command?
Thanks,
aBBy007
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi there.
How do I make the DB connection see the parameter variables passed to the unix script ? The code snippet below isn't working properly.
sqlplus << EOF
user1@db1/pass1
BEGIN
PACKAGE1.perform_updates($1,$2,$3);
END;
EOF
Thanks in advance,
Abrahao. (2 Replies)
Discussion started by: 435 Gavea
2 Replies
2. Shell Programming and Scripting
Hi,
Apologies if anyone has read my recent post on the same subject in the Linux forum, just thought actually the solution might more likely come from scripting.
Essentially, I am trying to restrict access to directories based on the user's name AND their location on a session-by-session... (3 Replies)
Discussion started by: en7smb
3 Replies
3. Solaris
I am not able to login in gnome session and java session in Sun solaris 9& 10 respectively through xmanager as a nis user, I am able to login in common desktop , but gnome session its not allowing , when I have given login credentials, its coming back to login screen, what shoul I do to allow nis... (0 Replies)
Discussion started by: durgaprasadr13
0 Replies
4. UNIX for Dummies Questions & Answers
Hello
How to configure, or where to have each session history in different file
Example: someone is connecting as root and at this time is creating file in which we have history of executed command
to server is connecting another user and is created another file with command executed by... (1 Reply)
Discussion started by: vikus
1 Replies
5. Solaris
what is the difference between desktop session and console session in solaris
as i am wondering we use option -text for the former and -nowin for the later (1 Reply)
Discussion started by: kishanreddy
1 Replies
6. UNIX for Advanced & Expert Users
Hi all,
My need is :
1. To know who , when , which command used.
2. Local user should not delete this information.
I mean , with an example , i can say
i have a user user1
i need to give all the following permissions to user1, :
a. A specific directory other than his home... (3 Replies)
Discussion started by: linuxadmin
3 Replies
7. UNIX for Dummies Questions & Answers
Hi all,
My need is :
1. To know who , when , which command used.
2. Local user should not delete this information.
I mean , with an example , i can say
i have a user user1
i need to give all the following permissions to user1, :
a. A specific directory other than his home... (1 Reply)
Discussion started by: sriky86
1 Replies
8. Red Hat
Dear All,
I want to keep all the session history in one file,please help me out to configure so.
Here is the test scenario-
Suppose i have three client A,B and C tries to log in to one Server XA there session specific command and Clint IPADDRESS should get logged in one file...like ... (0 Replies)
Discussion started by: monojcool
0 Replies
9. Red Hat
Dear All,
I want to display the command related to current session in Redhat Linux 5.
Below history command display all the command in ~/.bash_history file.
$history
My requirement is the command executed in my current session.I mean to say.
Suppose after log in as root i executed
... (1 Reply)
Discussion started by: monojcool
1 Replies
LEARN ABOUT DEBIAN
minchistory
MINCHISTORY(1) User Contributed Perl Documentation MINCHISTORY(1)
NAME
minchistory - prints history information for minc files
SYNOPSIS
minchistory [options] <file1.mnc> [<file2.mnc> ... ]
minchistory will dump the internal history of one or more MINC files
DESCRIPTION
minchistory is a perl script that prints the history information in a collection of MINC files. Most MINC files contain an internal "audit
trail" that lists the commands used to create the MINC file. This tool provides a convenient way to examine this information.
For each file, minchistory prints a title line followed by a series of lines which list the history information for that file.
--- History of <filename> ---
[01] Wed Oct 13 15:35:35 EST 2004>>>> dicom3_to_minc .
[02] Wed Oct 13 15:43:34 2004>>> mincreshape +direction
bob-jones_256x256x256_T1.mnc out.mnc -dimorder zspace,yspace,xspace
-clobber
minchistory is essentially an alias for the following command with a bit of pretty printing added.
mincinfo -attvalue :history B<filename.mnc>
OPTIONS
-v, --verbose
Be noisy when doing things
--version
Print version number and exit
-h, --help
Dump some quick help output
--man
Dump a man page
SEE ALSO
mincinfo(1)
AUTHOR
Andrew Janke - a.janke@gmail.com
COPYRIGHTS
Copyright 2000 by Andrew L Janke
perl v5.14.2 2012-03-09 MINCHISTORY(1)