LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux please (https://www.linuxquestions.org/questions/linux-newbie-8/linux-please-220153/)

Ikebo 08-20-2004 10:48 AM

Linux please
 
`who` and `uptime` show that there are users logged in to my system at 0:0 after I have completely logged out locally (2.6.7). Is there any way to boot these idle users?

Is this a known bug (or maybe just a side effect of -03)?

[sorry if this is a common question, it's a hard one to search for info on]

XavierP 08-20-2004 11:09 AM

What are the user names? There are a few accounts which are required for the system to run.

Ikebo 08-20-2004 11:55 AM

Just my personal user account 'ike.' I've never noticed them before.

I think there are three because I login in text mode (1) and usually startx (1) then open up a login term window (1) ... but they usually go away after I logout. I am going for a personal uptime record but this may impede my progress.

Ikebo 08-21-2004 03:41 AM

There are more now -- they are adding up. Anyone else ever witness this phenomena?

masand 08-21-2004 11:44 AM

hi there
may be u can se if the users that are logged on,are involved wih some kind of proceses by

#ps -aux|grep <username>

regards

student04 08-21-2004 01:53 PM

are you being group-hacked? ..or something.. like is your password one letter?

i'm on the 2.6.3-7mdk kernel (mandrake) and boot up the same way you do (text->KDE)
when i type 'who' in a console window i only get one entry..

alex vc/1 Aug 21 11:56

so i don't know what you have.. sorry :-/

Ikebo 08-22-2004 03:16 PM

Hmm ... ps/grep just listed the few processes that I am currently running, no trace of any other processes, and I don't think I am being hacked, I'm not sure if the machine is even accessible from the outside. But thanks for the help so far.

I think I have figured out where they are coming from. When I exit GNOME with a g-term window open, a new permanent 'ike' user appears. However, I can't find any active processes associated with them, nor do I know how to get rid of them.

Maybe there is a way to have gnome-terminal flush these users?

XavierP 08-22-2004 04:21 PM

Try running finger and finger <username>and to see when these users last logged in - if needs be, post the names up here.

WhiteChedda 08-22-2004 05:35 PM

Quote:

Originally posted by student04
are you being group-hacked? ..or something.. like is your password one letter?

i'm on the 2.6.3-7mdk kernel (mandrake) and boot up the same way you do (text->KDE)
when i type 'who' in a console window i only get one entry..

alex vc/1 Aug 21 11:56

so i don't know what you have.. sorry :-/

I see two, running a teminal from within X11, but both are me.

userx vc/1 Aug 22 14:30
userx pts/0 Aug 22 17:17 (:0.0)

However, the most simple and logical solution I can think of is unplug from the network, reboot and see
if the users still exist. If they don't then its something local, that doesn't mean you are in the clear yet, but you
can stop worrying about someone from the outside getting in on you.

Ikebo 08-22-2004 05:40 PM

The (ike.mshome.net) user is the one used to generate this list, the others are the idle users I would like to boot.

Code:

[ike:~]$ finger
finger: /dev//pts/280: No such file or directory
finger: /dev//pts/285: No such file or directory
finger: /dev//pts/286: No such file or directory
finger: /dev//pts/293: No such file or directory
finger: /dev//pts/294: No such file or directory
finger: /dev//pts/298: No such file or directory
Login    Name            Tty      Idle  Login Time  Office    Office Phone
ike      Ike Gingerich  *pts/280        Aug 17 12:56 (:0.0)
ike      Ike Gingerich  *pts/285        Aug 18 01:49 (:0.0)
ike      Ike Gingerich  *pts/286        Aug 18 09:35 (:0.0)
ike      Ike Gingerich  *pts/293        Aug 21 03:37 (:0.0)
ike      Ike Gingerich  *pts/294        Aug 21 03:41 (:0.0)
ike      Ike Gingerich  *pts/298        Aug 21 14:22 (:0.0)
ike      Ike Gingerich  pts/302        Aug 22 17:34 (ike.mshome.net)
[ike:~]$ finger ike
finger: /dev//pts/280: No such file or directory
finger: /dev//pts/285: No such file or directory
finger: /dev//pts/286: No such file or directory
finger: /dev//pts/293: No such file or directory
finger: /dev//pts/294: No such file or directory
finger: /dev//pts/298: No such file or directory
Login: ike                              Name: Ike
Directory: /home/ike                    Shell: /bin/bash
On since Tue Aug 17 12:56 (EDT) on pts/280 from :0.0 (messages off)
On since Wed Aug 18 01:49 (EDT) on pts/285 from :0.0 (messages off)
On since Wed Aug 18 09:35 (EDT) on pts/286 from :0.0 (messages off)
On since Sat Aug 21 03:37 (EDT) on pts/293 from :0.0 (messages off)
On since Sat Aug 21 03:41 (EDT) on pts/294 from :0.0 (messages off)
On since Sat Aug 21 14:22 (EDT) on pts/298 from :0.0 (messages off)
On since Sun Aug 22 17:34 (EDT) on pts/302 from ike.mshome.net
No mail.
No Plan.


Ikebo 08-22-2004 06:27 PM

These users appear in `who` but not `w`, so as far as I can tell there are hung users who are leasing pts's that no longer exist (according to the code listings above) and have no processes associated with them anymore, caused by not cleanly closing down a gnome-terminal session.

It seems each user is sucking up some memory too. Maybe the only thing I can do to clean this up is reboot.

masand 08-23-2004 12:57 AM

hi there
u do not need to reboot
i have a small program written in C,for these kind of things only

i will uploading that soon and will keep u posted about that

regards
gaurav

Ikebo 08-23-2004 10:49 PM

That would be excellent. Let me know!

masand 08-24-2004 01:28 AM

hi there

just finished the program it is working fine!!
will be relaesing that to
masand.sourceforge.net
in a day or 2

regards

Ikebo 09-17-2004 07:46 PM

quick workaround
 
Well the only workaround for this I can muster at this point is to modify gnome-terminal settings.

Edit Current Profile > Title and Command > Update login records

Unchecking this option will make gnome-terminal not allocate a pts for this process, so exiting GNOME without closing down all the active shells wont leave these ghost users floating around in accounting info somewhere (with no new processes associated with them).

That works for me. Is there any real reason to have gnome-terminals update login info? Seems kinda like a waste.


All times are GMT -5. The time now is 05:52 AM.