LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-30-2011, 06:49 AM   #1
asimov
Member
 
Registered: Oct 2004
Location: Israel
Distribution: Debian
Posts: 37

Rep: Reputation: 15
Another session logged in but running no processes?


Hi all,

Since I can't figure what's going on, any hint would be appreciated.

My University gives us access to a Linux server, named stud1.

Code:
me@stud1:~$ uname -a
Linux stud1.some.univ.ac 2.6.9-89.31.1.ELsmp #1 SMP Mon Oct 4 21:41:59 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
Apparently I was logged in, and never logged out sometime:
Code:
me@stud1:~$ who
<snip>
me       pts/37       Jan 30 13:27 (6.6.66.66)
<snip>
me       pts/58       Dec 30 19:13
but when trying to find out why I'm still logged in, I can't find it:
Code:
me@stud1:~$ ps faux |grep me
root  30030  0.0  0.0 51128 4360 ?        Ss   13:27   0:00  \_ sshd: me [priv]
me    30033  0.0  0.0 51132 2336 ?        S    13:27   0:00      \_ sshd: me@pts/37
me    30034  0.0  0.0 59684 1536 pts/37   Ss   13:27   0:00          \_ -bash
me    31241  0.0  0.0 10732 1248 pts/37   R+   13:45   0:00              \_ ps faux
me    31242  0.0  0.0 51084  584 pts/37   S+   13:45   0:00              \_ grep --color=auto me
My question is: what is going on? how can I logout this unused session?

Thanks in advance.

Last edited by asimov; 01-30-2011 at 07:22 AM. Reason: styling
 
Old 01-30-2011, 12:11 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,101

Rep: Reputation: 2483Reputation: 2483Reputation: 2483Reputation: 2483Reputation: 2483Reputation: 2483Reputation: 2483Reputation: 2483Reputation: 2483Reputation: 2483Reputation: 2483
Can you kill the bash terminal associated with it?
the o/p of lsof |grep me might also be interesting
 
Old 01-30-2011, 12:32 PM   #3
asimov
Member
 
Registered: Oct 2004
Location: Israel
Distribution: Debian
Posts: 37

Original Poster
Rep: Reputation: 15
how can I kill the terminal? the mysterious pts is not even showing in /dev:
Code:
me@stud1:/dev/pts$ ls
0  101  120  136  137  14  23  25  26  28  29  33  35  36  37  39  44  48  5  56  64  77  8  84  85  87  88  89  92
Code:
me@stud1:~$ lsof |grep me
sshd      19550  me  cwd   unknown                            /proc/19550/cwd (readlink: Permission denied)
sshd      19550  me  rtd   unknown                            /proc/19550/root (readlink: Permission denied)
sshd      19550  me  txt   unknown                            /proc/19550/exe (readlink: Permission denied)
sshd      19550  me NOFD                                      /proc/19550/fd (opendir: Permission denied)
bash      19551  me  cwd       DIR   0,19     8192    2321487 /u1/004/me (netapp1:/vol/stud/u1)
bash      19551  me  rtd       DIR   8,17     4096          2 /
bash      19551  me  txt       REG   8,17   773216    3342359 /bin/bash
bash      19551  me  mem       REG   8,17  5846806    1410562 /var/db/nscd/passwd
bash      19551  me  mem       REG   8,17 48512432    3253817 /usr/lib/locale/locale-archive
bash      19551  me  mem       REG   8,17    21546    3293592 /usr/lib64/gconv/gconv-modules.cache
bash      19551  me  mem       REG   8,17    10128    3293526 /usr/lib64/gconv/ISO8859-1.so
bash      19551  me  mem       REG   8,17   115168    4866275 /lib64/ld-2.3.4.so
bash      19551  me  mem       REG   8,17  1641144    4866378 /lib64/tls/libc-2.3.4.so
bash      19551  me  mem       REG   8,17    19816    4866380 /lib64/libdl-2.3.4.so
bash      19551  me  mem       REG   8,17    15744    4866394 /lib64/libtermcap.so.2.0.8
bash      19551  me    0u      CHR 136,14                  16 /dev/pts/14
bash      19551  me    1u      CHR 136,14                  16 /dev/pts/14
bash      19551  me    2u      CHR 136,14                  16 /dev/pts/14
bash      19551  me  255u      CHR 136,14                  16 /dev/pts/14
lsof      19741  me  cwd       DIR   0,19     8192    2321487 /u1/004/me (netapp1:/vol/stud/u1)
lsof      19741  me  rtd       DIR   8,17     4096          2 /
lsof      19741  me  txt       REG   8,17   109176    3257342 /usr/sbin/lsof
lsof      19741  me  mem       REG   8,17 48512432    3253817 /usr/lib/locale/locale-archive
lsof      19741  me  mem       REG   8,17   115168    4866275 /lib64/ld-2.3.4.so
lsof      19741  me  mem       REG   8,17  1641144    4866378 /lib64/tls/libc-2.3.4.so
lsof      19741  me    0u      CHR 136,14                  16 /dev/pts/14
lsof      19741  me    1w     FIFO    0,7           195501252 pipe
lsof      19741  me    2u      CHR 136,14                  16 /dev/pts/14
lsof      19741  me    3r      DIR    0,3        0          1 /proc
lsof      19741  me    4r      DIR    0,3        0 1293746185 /proc/19741/fd
lsof      19741  me    5w     FIFO    0,7           195501258 pipe
lsof      19741  me    6r     FIFO    0,7           195501259 pipe
grep      19742  me  cwd       DIR   0,19     8192    2321487 /u1/004/me (netapp1:/vol/stud/u1)
grep      19742  me  rtd       DIR   8,17     4096          2 /
grep      19742  me  txt       REG   8,17    89152    3342386 /bin/grep
grep      19742  me  mem       REG   8,17 48512432    3253817 /usr/lib/locale/locale-archive
grep      19742  me  mem       REG   8,17   115168    4866275 /lib64/ld-2.3.4.so
grep      19742  me  mem       REG   8,17  1641144    4866378 /lib64/tls/libc-2.3.4.so
grep      19742  me  mem       REG   8,17    63432    4866305 /lib64/libpcre.so.0.0.1
grep      19742  me    0r     FIFO    0,7           195501252 pipe
grep      19742  me    1u      CHR 136,14                  16 /dev/pts/14
grep      19742  me    2u      CHR 136,14                  16 /dev/pts/14
lsof      19743  me  cwd       DIR   0,19     8192    2321487 /u1/004/me (netapp1:/vol/stud/u1)
lsof      19743  me  rtd       DIR   8,17     4096          2 /
lsof      19743  me  txt       REG   8,17   109176    3257342 /usr/sbin/lsof
lsof      19743  me  mem       REG   8,17 48512432    3253817 /usr/lib/locale/locale-archive
lsof      19743  me  mem       REG   8,17   115168    4866275 /lib64/ld-2.3.4.so
lsof      19743  me  mem       REG   8,17  1641144    4866378 /lib64/tls/libc-2.3.4.so
lsof      19743  me    4r     FIFO    0,7           195501258 pipe
lsof      19743  me    7w     FIFO    0,7           195501259 pipe
 
  


Reply

Tags
login, ps, session, top


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[Help in Bash Scripting] Display real name from username logged in + user processes leoboy1986 Programming 1 01-14-2011 02:11 PM
[SOLVED] logged users without processes? paliga Linux - Server 4 11-02-2010 03:05 PM
where are ssh session activity logged? lovingsanth Linux - Networking 4 03-05-2008 10:37 AM
processes remain after I have logged out! drgowans Red Hat 5 11-12-2003 04:39 AM
not logged in but session wont die! tig_grrrrr Linux - General 2 07-09-2003 11:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration