I need to know if user test in login in.
I created two ssh connections, and in the second one I executed:
On the first one I executed:
# who -u
root tty1 2016-03-02 12:59 02:13 2124
root pts/0 2016-03-02 13:16 . 8250 (192.168.1.11)
root pts/1 2016-03-02 15:23 00:03 5083 (192.168.11.12)
So, test isn't detected. Is any way to detect if test user login?