cancel
Showing results for 
Search instead for 
Did you mean: 

server login record

 
SOLVED
Go to solution
Kranti Mahmud
Honored Contributor

server login record

Hi All,

Is there any tool or procedure or script by which whenever any user login to the server, date,time and the command the user execute will save to a specific directory?

Rgds-Kranti
Dont look BACK as U will miss something INFRONT!
2 REPLIES
Raj D.
Honored Contributor

Re: server login record

Kranti,

You can do with the following method:

1. You can customize : .sh_history with date and time stamp with each login it will have all the history.

Example:
~username/history/history.$date.$time

So each login will have each file.


2. You can also put the script command at the end of .profile that will capture everything.
Remember the file grow by itself with the progress, space may be check. Details # man script


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor
Solution

Re: server login record