Author Topic: tmux constantly logging in user?  (Read 779 times)

Offline donchaos

  • Junior Indexer
  • **
  • Posts: 32
  • Helpful: +1/-0
tmux constantly logging in user?
« on: 2016-05-19, 01:49:28 PM »
I just noticed that on my newly setup machine (Ubuntu 15.10) the "accounts-daemon" process was using up nearly 100% cpu time.

After some googling i found that it was because /var/log/wtmp had grown to over 600MB in size. Since that is a binary file i can't read much out of it, but it contains lots of words like tmux, 'my_username', pts/7, pts/16, pts/18 and so on.

Does anyone know what this is about?

Offline NZBmets

  • Prolific Indexer
  • ****
  • Posts: 255
  • Helpful: +11/-0
Re: tmux constantly logging in user?
« Reply #1 on: 2016-05-24, 04:54:52 AM »
You can use:

Code: [Select]
utmpdump /var/log/wtmp | less
and then Q to exit.

Some further reference: http://unix.stackexchange.com/questions/2295/why-does-var-log-wtmp-becomes-so-huge-how-to-inspect-wtmp-files#2296

Offline sinistra

  • Decent Indexer
  • ***
  • Posts: 77
  • Helpful: +2/-0
Re: tmux constantly logging in user?
« Reply #2 on: 2016-05-26, 11:06:37 AM »
Consider adding the file to logrotate:

For reference: http://www.techrepublic.com/article/manage-linux-log-files-with-logrotate/