ubuntu server false number of logins via ssh

Bug #1131718 reported by Störmchen
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
landscape-client (Ubuntu)
New
Undecided
Unassigned

Bug Description

I used the actual Ubuntu 12.04 LTS server and a client with 12.04 LTS desktop.

I installed the openssh-server on my server. After this, I connected via SSH from the client to the server. I expected "Users logged in: 2" But instead of this, the server shows only "Users logged in: 1".

"users" and "who" show me the real number of users logged in.

Tags: bot-comment
description: updated
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1131718/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
affects: ubuntu → landscape-client (Ubuntu)
Revision history for this message
Bryan Fullerton (fehwalker) wrote :

The "Users logged in" section of /etc/motd is updated on login pam_motd which calls /etc/update-motd.d/50-landscape-sysinfo (a symlink to the /usr/share/landscape/landscape-sysinfo.wrapper), which in turn runs /usr/bin/landscape-sysinfo.

Some things I have noticed playing with this... (not sure if this is documented anywhere, didn't see a man page)

- if the user doesn't have permissions to their home directory, running landscape-sysinfo will fail, because it requires creating a folder named ~/.landscape
- multiple logins of the same user are grouped together as one user
- the update of motd appears to be run before the current login is processed, so if user A is logged in and user B logs in, it will only see one user, but if user B logs in a second concurrent time it will see two users

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.