[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: no .bash_hostory file was found in user home folder



i am using package "acct" (lastcomm is part of this package).
my
question is, isn't "acct" package depends upon user's .bash_history ? or it is maintaining its own log?

yes i can see  user can delete/edit their history file. is there anyway to record history permanently. a good solution for accounting.

Thanks,


On Mon, Oct 21, 2013 at 8:08 PM, Chris Davies <chris@roaima.co.uk> wrote:
Muhammad Yousuf Khan <sirtcp@gmail.com> wrote:
> :~$ echo $HISTFILE
> /home/ykhan/.bash_history

> any idea where these history files are.
> actually i need to do some accounting for my users , what they are doing
> actually with time tag set to ON.

These files are of limited value for accounting since the users can
simply edit them. Perhaps you should investigate the kernel's process
accounting subsystem (usermode tools are in package "acct):

  # lastcomm --strict-match --user dmaus --tty pts/4 | head -5
  tty                    dmaus    pts/4      0.00 secs Mon Oct 21 16:05
  ls                     dmaus    pts/4      0.00 secs Mon Oct 21 16:04
  bash              F    dmaus    pts/4      0.00 secs Mon Oct 21 16:04
  dircolors              dmaus    pts/4      0.00 secs Mon Oct 21 16:04
  bash              F    dmaus    pts/4      0.00 secs Mon Oct 21 16:04

Chris


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: [🔎] 9lsfjaxrjg.ln2@news.roaima.co.uk" target="_blank">http://lists.debian.org/[🔎] 9lsfjaxrjg.ln2@news.roaima.co.uk



Reply to: