[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: who am i on screen
From: |
Micah Cowan |
Subject: |
Re: who am i on screen |
Date: |
Mon, 20 Jul 2009 13:52:45 -0700 |
User-agent: |
Thunderbird 2.0.0.22 (X11/20090608) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
(Please keep it on the list)
Tales Macedo wrote:
> Thanks for answer me
>
> Initially excuse my english.
> When I try to run the command $ who am i on screen session, it does
> not show anything. Type:
>
> $ screen
>
> (on screen session I try: )
>
> screen> who am i
>
> don't show anything.
>
> outside the screen:
>
> tales pts/8 .... (201.2.103.109).
Ah, ok, I was thinking you were talking about "whoami", rather than "who
am i". That situation is less unlikely, then. :)
The reason is that screen is not updating /var/run/utmp for some reason.
Various reasons why this might be:
- screen doesn't have proper permissions to write to utmp
Solution: ensure that screen is setgid utmp, or setuid root
- screen is not configured to write to utmp
Solution: ensure that "deflogin on" is not unset in your
/etc/screenrc and ~/.screenrc.
My own setup does not normally have setgid utmp, but screen will happily
tell me "this window is logged in", rather than error out as it ought
to. I'll file a bug to investigate that.
- --
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer.
Maintainer of GNU Wget and GNU Teseq
http://micah.cowan.name/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkpk2R0ACgkQ7M8hyUobTrEc5gCePgX6RX1t4WrjVZHBYicDwuOq
bMAAn2C3qDOBoovkaWS42P40R5ZWoOiw
=9Jfl
-----END PGP SIGNATURE-----