While normal users have a .bash_history
in their home directory, the www-data
user does not have a home directory.
As such, are there any means to track the history of the www-data
user?
While normal users have a .bash_history
in their home directory, the www-data
user does not have a home directory.
As such, are there any means to track the history of the www-data
user?
Process accounting could help your cause. If your kernel supports process accounting, which is something normally supported by kernels provided by distribution you need to enable process accounting by running
acct on
If you don't have acct
you will need to install process accounting tools, e.g.
On centos/redhat
yum install psacct
On debian/ubuntu
apt-get install acct
and then to check what some user was running you can use
lastcomm www-data