Re: user History File.

2016-02-28 Thread Dan Ritter
On Mon, Feb 29, 2016 at 05:48:42AM +1100, Andrew McGlashan wrote: > > > > What is the difference between these two tools, they /seem/ to do the same? > I haven't used or researched conspy, but it looks like the mechanism there might be specific to the virtual console system, rather than

Re: user History File.

2016-02-28 Thread Andrew McGlashan
On 29/02/2016 2:19 AM, Dan Ritter wrote: > There is the ttysnoop package, but I strongly advise consulting > with a knowledgeable local lawyer before using it. If your laws > protect privacy at all, using it on a user without their > explicit consent is likely to be a crime. # aptitude show

Re: user History File.

2016-02-28 Thread Dan Ritter
On Sun, Feb 28, 2016 at 01:52:25PM +0500, Muhammad Yousuf Khan wrote: > Thanks Alot for your input Tomas. > > I don't know exactly what your problem is, but take into account that bash > > only appends its (in-memory) history to .bash_history at exit (so while > > the shell is active you won't

Re: user History File.

2016-02-28 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, Feb 28, 2016 at 01:52:25PM +0500, Muhammad Yousuf Khan wrote: > Thanks Alot for your input Tomas. > > I don't know exactly what your problem is, but take into account that bash > > only appends its (in-memory) history to .bash_history at exit

Re: user History File.

2016-02-28 Thread Muhammad Yousuf Khan
Thanks Alot for your input Tomas. I don't know exactly what your problem is, but take into account that bash > only appends its (in-memory) history to .bash_history at exit (so while > the shell is active you won't see any changes) Actually i never worked on multi user environment. this is the

Re: user History File.

2016-02-27 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, Feb 27, 2016 at 12:30:20PM +0500, Muhammad Yousuf Khan wrote: > I have been trying one user to monitor his history. however every time i > "cat /home/username/.bash_history" i see always the same history as old one. > I want to monitor his

user History File.

2016-02-26 Thread Muhammad Yousuf Khan
I have been trying one user to monitor his history. however every time i "cat /home/username/.bash_history" i see always the same history as old one. I want to monitor his history. no matter how many sessions but every command should go to same history file. Any advice or guidance will be highly