Quote:
Originally Posted by chenjimjc
Hi,
I have a service account that logs into my server from another server frequently. They are legit logins. When I use the 'last' command, I see all the logins. But I don't want to log the logins for this particular service account (and only this service account). Is there a way to do this? I am running Red Hat 6.x and CentOS 6.x.
Of course I can use 'last |grep -v theServiceAccount' to exclude it when using the 'last' command. But I do not want to log the logins at all.
|
What are you trying to accomplish by doing this?? As far as I know, there is no way to circumvent such things.
Logging legitimate user activity should be something you want, and if you're using the data for something else, and you don't want the clutter, you can easily delete the lines you don't want with sed/grep.