[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

screen lets local users on tty1 remove themselves from the output of w



I found out that it is posible for local users on tty1 to hide
themselves from the output of the "w" command if they use gnu screen.

1. start a screen session as normal user and detach.
2. login as that user on tty1 (not tty2)
3. run "w" and verify that your session is listed.
4. run "screen -r" and detach.
5. now you're not listed in the output of the "w" command.

I'm running Debian Sid pure64 on AMD64 with login, screen, udev, kernel
2.6.9, etc. all installed from the debs.

There seems to be a difference in the output of w and who.
It seems like a blank line is reported instead of the desired
information.

It won't work if not connected to /dev/tty1

Could anybody confirm this?
-- 
Daniel van Eeden <daniel_e@dds.nl>

Attachment: signature.asc
Description: This is a digitally signed message part

Attachment: smime.p7s
Description: S/MIME cryptographic signature


Reply to: