Description using last command


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Description using last command
# 1  
Old 10-13-2015
Description using last command

Hello Experts,

I need the description (like if user has done sudo,logging from winscp termial or ssh from other machine) using the last command.Can someone help me out please.

Thanks.
# 2  
Old 10-13-2015
last really isn't for that.

You'll either have to use something based of a user's history or use some kind of wrapper. Sudo has logging capabilities (not complete logging, but command logging anyhow).

Note: last is a database of login entries that are logged to wtmp (subnote: you can do operations on a host even interactively without showing up in wtmp).
This User Gave Thanks to cjcox For This Post:
# 3  
Old 10-13-2015
Thank you cjcox for prompt response.

Can you elaborate what do you mean wrapper?
# 4  
Old 10-13-2015
It means the user uses some sort of interface which logs, instead of the prompt directly.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Description of the option print0 in the command find (man page)

This is the description of the option -print0 fon the command find in the man page: What does the "True" in the first line of the description mean? (3 Replies)
Discussion started by: puertas12
3 Replies

2. Homework & Coursework Questions

Description of OR AND Operator

From the below i would need the difference using between && and || error_func() { # Standard error function ] && print -u2 "ERROR: $*" exit 1 } ] && error_func "Source Directory is missing as input argument" ] || error_func "Source Directory does not... (1 Reply)
Discussion started by: arun888
1 Replies

3. Red Hat

Password Policy description

Hi Experts, i would like to know the description of the following: Minimum: 0 Maximum: 90 Warning: 7 Inactive: -1 Last Change: Never Password Expires: Never Password Inactive: Never Account Expires: Never Does this means that... (2 Replies)
Discussion started by: yprudent
2 Replies

4. Programming

Variable and function description

I have a C++ project and want to describe the variables and functions in the code. A small example is shown below. I am wondering where to best describe the variables and functions. I have made a UML diagram in the beginning. There are several options 1. In the UML diagram in the beginning.... (0 Replies)
Discussion started by: kristinu
0 Replies

5. UNIX for Dummies Questions & Answers

require detailed description for df -k command

Hi, I have used df -k always just to check the % of disk space left. Recently i discovered that the sum availabl space and used space is not equal to 1K-blocks. Can anyone explain me the reason for this difference. Thanks. (3 Replies)
Discussion started by: shooter
3 Replies

6. Homework & Coursework Questions

Command Doesn't Show Description

im making c code in linux and im having problems with one command, id should bring up a list but instead id doesnt do nothing, there are no error's, can anyone solve whats wrong ? void environ() { extern char **environ; int i=0; for (i = 0; environ !=NULL;i++) { ... (1 Reply)
Discussion started by: figureout
1 Replies

7. AIX

2 way and 4 way Hardware Description

Hi, I would like to know the significance of 2 way and 4 way and 8 way Hardware Description, like 2 way p595 and 4 way p695 servers. What exactly does "2 way", "4 way" mean ? (1 Reply)
Discussion started by: praveenr
1 Replies

8. UNIX for Dummies Questions & Answers

Description of Environments Supported By....

Im a learner on the unix/linux OS,i wanted a description of the main environments supported by the unix/linux environment. Thanks (2 Replies)
Discussion started by: zizu
2 Replies

9. UNIX for Dummies Questions & Answers

How to change File Description

When I am browsing the web and I end up in a directory with no HTML index file (ie index.html), I see something like this: Index of /k Name Last modified Size Description -------------------------------------------------------------------- 115-1564_CRW.jpg ... (4 Replies)
Discussion started by: PearPie
4 Replies
Login or Register to Ask a Question