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 see any changes) > > > Actually i never worked on multi user environment. this is the first time > that i am dealing with multiple users. i want to monitor what hey are > doing. so i thought history is the best option to do.but when i try to scan > their history i see nothing. so my Question is why i can not see any thing > new in their history file. > so how can i track user activity.
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. -dsr-