As you know better than me any action in linux store in log files, like /var/log
, I was wondering is there anyway to customize the log file in linux, for example in this case I'm the root of my system, and I don't want to log root's actions, but the others are important because I want to monitor them.
in this case just wtmp
is important to me !
wtmp
logs all the users. If you just want to view one particular user's action , you can uselast username
orlast | grep 'user1\|user2\|user3\|'
for multiple users. Let me know if that's an acceptable answer for you, and I'll post it. – Sergiy Kolodyazhnyy Jun 23 '15 at 15:03history
for example, would that do? – terdon Jun 23 '15 at 16:39wtmp
is. I guess it is a program. Do you want to have that one logged or not ave it logged? And in what log file? – terdon Jun 23 '15 at 17:40wtmp
. Is that correct? – terdon Jun 23 '15 at 17:46