LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-20-2004, 09:48 AM   #1
Ikebo
Member
 
Registered: Jun 2004
Location: Michigan, USA
Distribution: Ubuntu
Posts: 77

Rep: Reputation: 15
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]
 
Old 08-20-2004, 10:09 AM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
What are the user names? There are a few accounts which are required for the system to run.
 
Old 08-20-2004, 10:55 AM   #3
Ikebo
Member
 
Registered: Jun 2004
Location: Michigan, USA
Distribution: Ubuntu
Posts: 77

Original Poster
Rep: Reputation: 15
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.
 
Old 08-21-2004, 02:41 AM   #4
Ikebo
Member
 
Registered: Jun 2004
Location: Michigan, USA
Distribution: Ubuntu
Posts: 77

Original Poster
Rep: Reputation: 15
There are more now -- they are adding up. Anyone else ever witness this phenomena?
 
Old 08-21-2004, 10:44 AM   #5
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
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
 
Old 08-21-2004, 12:53 PM   #6
student04
Member
 
Registered: Jan 2004
Location: Georgia
Distribution: OS X, CentOS
Posts: 669

Rep: Reputation: 34
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 :-/
 
Old 08-22-2004, 02:16 PM   #7
Ikebo
Member
 
Registered: Jun 2004
Location: Michigan, USA
Distribution: Ubuntu
Posts: 77

Original Poster
Rep: Reputation: 15
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?
 
Old 08-22-2004, 03:21 PM   #8
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Try running finger and finger <username>and to see when these users last logged in - if needs be, post the names up here.
 
Old 08-22-2004, 04:35 PM   #9
WhiteChedda
Member
 
Registered: Aug 2003
Location: Florida
Distribution: Mandrake 9.1 for now
Posts: 205

Rep: Reputation: 30
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.

Last edited by WhiteChedda; 08-22-2004 at 04:36 PM.
 
Old 08-22-2004, 04:40 PM   #10
Ikebo
Member
 
Registered: Jun 2004
Location: Michigan, USA
Distribution: Ubuntu
Posts: 77

Original Poster
Rep: Reputation: 15
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.
 
Old 08-22-2004, 05:27 PM   #11
Ikebo
Member
 
Registered: Jun 2004
Location: Michigan, USA
Distribution: Ubuntu
Posts: 77

Original Poster
Rep: Reputation: 15
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.
 
Old 08-22-2004, 11:57 PM   #12
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
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
 
Old 08-23-2004, 09:49 PM   #13
Ikebo
Member
 
Registered: Jun 2004
Location: Michigan, USA
Distribution: Ubuntu
Posts: 77

Original Poster
Rep: Reputation: 15
That would be excellent. Let me know!
 
Old 08-24-2004, 12:28 AM   #14
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi there

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

regards
 
Old 09-17-2004, 06:46 PM   #15
Ikebo
Member
 
Registered: Jun 2004
Location: Michigan, USA
Distribution: Ubuntu
Posts: 77

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


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
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 10:37 PM
triple boot linux/linux/linux No Windows involved toastermaker Linux - Newbie 12 03-02-2006 10:40 PM
Redhat (rhel v2.1) bootup problem with linux (linux vs linux-up) namgor Linux - Software 2 06-24-2004 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:32 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration