Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-30-2011, 06:49 AM
|
#1
|
Member
Registered: Oct 2004
Location: Israel
Distribution: Debian
Posts: 37
Rep:
|
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
|
|
|
01-30-2011, 12:11 PM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,101
|
Can you kill the bash terminal associated with it?
the o/p of lsof |grep me might also be interesting
|
|
|
01-30-2011, 12:32 PM
|
#3
|
Member
Registered: Oct 2004
Location: Israel
Distribution: Debian
Posts: 37
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 01:27 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|