You are not logged in.

#1 2014-09-23 17:02:47

MikeDacre
Member
From: San Francisco Bay Area
Registered: 2013-01-18
Posts: 51
Website

[SOLVED] Global console messages: <user> has logged off pts/#

The root user and my user both get messages similar to these printed to the console:

ashley has logged off pts/1 from dnab403c32.                                                                                                                                                   
ashley has logged off pts/2 from dnab403c32.
ashley has logged off pts/9 from dnab403c32.
ashley has logged off pts/11 from dnab403c32.
ashley has logged off pts/14 from dnab403c32.
imk1 has logged on pts/11 from bio-hbf03.
ashley has logged on pts/1 from dnab403c32.
ashley has logged on pts/2 from dnab403c32.
ashley has logged on pts/9 from dnab403c32.
ashley has logged on pts/10 from dnab403c32.

I am not sure if other users also get these messages. It isn't necessarily bad to have these messages displayed, but for some reason I cannot figure out what setting controls it. Nothing in rsyslog except emergency messages is set to print to the console. Searching the man pages and google doesn't help me much - but I might just be searching stupidly.

Does anyone know why these messages are displayed?

Thank you,

Mike

Last edited by MikeDacre (2015-07-22 18:39:45)

Offline

#2 2015-07-22 00:52:52

MikeDacre
Member
From: San Francisco Bay Area
Registered: 2013-01-18
Posts: 51
Website

Re: [SOLVED] Global console messages: <user> has logged off pts/#

This problem still happens on every archlinux machine I own and I have no idea how to disable it. Does anyone know?

Offline

#3 2015-07-22 08:13:58

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: [SOLVED] Global console messages: <user> has logged off pts/#

By any chance are you using csh/tcsh or zsh? If so, did you set the watch variable?

Last edited by mauritiusdadd (2015-07-22 08:26:27)


About me - github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

#4 2015-07-22 18:36:34

MikeDacre
Member
From: San Francisco Bay Area
Registered: 2013-01-18
Posts: 51
Website

Re: [SOLVED] Global console messages: <user> has logged off pts/#

Yes, it was!

It is set in the default zshrc at /etc/zsh/zshrc, on line 644. Do you know if there is a way to automatically patch that file every time zsh is updated?

Offline

#5 2015-07-22 19:49:43

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: [SOLVED] Global console messages: <user> has logged off pts/#

That file is not provided by zsh, but by extra/grml-zsh-config. However, what does

pacman -Qo /etc/zsh/zshrc

says?

By the way, the global configuration is overridden by user configuration files so you can just add

watch=()

to your ~/.zshrc

Last edited by mauritiusdadd (2015-07-22 19:50:23)


About me - github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

#6 2015-07-22 21:33:17

MikeDacre
Member
From: San Francisco Bay Area
Registered: 2013-01-18
Posts: 51
Website

Re: [SOLVED] Global console messages: <user> has logged off pts/#

Ah yes, you are right, it is grml-zsh-config that controls that file. I don't want to uninstall that though, as a number of my users use zsh and use functions from that config. I will just have to manually edit that file whenever I upgrade the package to make sure that the login messages don't reappear.

Thanks for your help.

Offline

Board footer

Powered by FluxBB