Quantcast

Who and write not working as before

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Who and write not working as before

MR ZenWiz
I recently installed Xubuntu 12.04 on my home desktop where I was
previously running Ubuntu 10.10, and something strange is now
happening - who and write don't work the way they used to.

1) 'who' by itself displays nothing at all.  With 'who -a', I get this:

$ who -a
          system boot  2012-06-16 12:57
          run-level 2  2012-06-16 12:57
LOGIN      tty4         2012-06-16 12:57              1081 id=4
LOGIN      tty5         2012-06-16 12:57              1087 id=5
LOGIN      tty2         2012-06-16 12:57              1094 id=2
LOGIN      tty3         2012-06-16 12:57              1095 id=3
LOGIN      tty6         2012-06-16 12:57              1097 id=6
LOGIN      tty1         2012-06-16 12:57              1317 id=1

This is not helpful, as you might guess.

2) Worse, write does not seem to work at all.  If I write to myself, I
get a message that I'm not logged in.

What am I missing?

MR ZenWiz

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Who and write not working as before

C de-Avillez-2
On Sun, 17 Jun 2012 17:10:09 -0700
MR ZenWiz <[hidden email]> wrote:

> I recently installed Xubuntu 12.04 on my home desktop where I was
> previously running Ubuntu 10.10, and something strange is now
> happening - who and write don't work the way they used to.

I am not sure about what is meant for "the way they used to".
Nevertheless, this is a known issue on LightDM [1]; a patch has been
proposed and accepted upstream, and a SRU is opened against 12.04, with
a target of 12.04.1.

>
> 1) 'who' by itself displays nothing at all.  With 'who -a', I get
> this:
>
> $ who -a
>           system boot  2012-06-16 12:57
>           run-level 2  2012-06-16 12:57
> LOGIN      tty4         2012-06-16 12:57              1081 id=4
> LOGIN      tty5         2012-06-16 12:57              1087 id=5
> LOGIN      tty2         2012-06-16 12:57              1094 id=2
> LOGIN      tty3         2012-06-16 12:57              1095 id=3
> LOGIN      tty6         2012-06-16 12:57              1097 id=6
> LOGIN      tty1         2012-06-16 12:57              1317 id=1
>
> This is not helpful, as you might guess.
This is *one* of the issues with 'who' -- actually, with utmp/wtmp
handling and usage. 'who' just reports on what it finds in utmp.
LightDM is not writing it, and some of the terminal clients also do not
write it. In fact, *most* of the graphical programs do not interface
with utmp. I have not looked at the other DMs, so YMMV.

>
> 2) Worse, write does not seem to work at all.  If I write to myself, I
> get a message that I'm not logged in.

Yes. 'write' reads utmp to find the user. Since there are no real
records written to it, it fails.

>
> What am I missing?

(1) the fix in [1], but this will not completely solve the issue;
(2) a real replacement for utmp, now geared for graphical environments.
utmp, 'who', and 'write' were written a long time ago, when the *IXes
available we mostly command-line. This is not the norm anymore (except
for the server arena). I know of no real replacement as of a few years
ago, when I last searched for it.

Cheers,

..C..

[1] https://bugs.launchpad.net/lightdm/+bug/870297

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

signature.asc (853 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Who and write not working as before

MR ZenWiz
On Sun, Jun 17, 2012 at 6:48 PM, C de-Avillez <[hidden email]> wrote:

> On Sun, 17 Jun 2012 17:10:09 -0700
> MR ZenWiz <[hidden email]> wrote:
>
>> I recently installed Xubuntu 12.04 on my home desktop where I was
>> previously running Ubuntu 10.10, and something strange is now
>> happening - who and write don't work the way they used to.
>
> I am not sure about what is meant for "the way they used to".
> Nevertheless, this is a known issue on LightDM [1]; a patch has been
> proposed and accepted upstream, and a SRU is opened against 12.04, with
> a target of 12.04.1.
>
Many thanks.

MRZ

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Loading...