users logged in

Place to discuss Fedora and/or Red Hat

users logged in

Postby tk » Mon May 10, 2004 12:22 pm

There are two of the same users logged in using my name (I'm the only one who uses computer), how can I log one of them out so only the one I am using is active?
tk
user
user
 
Posts: 12
Joined: Sat Apr 24, 2004 8:23 pm

Postby Void Main » Mon May 10, 2004 1:21 pm

I'm not quite sure what you are asking. Are you saying you telneted/sshed into a machine twice and see your username twice when doing a "who"? If so you can type "tty" on the command line and it will show what the terminal name is that your ID is associated with for that particular login. You can also grep for that tty in the ps list and see what processes were started in that login session. e.g.

$ tty
/dev/pts/1
$ ps auxww | grep pts/1
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby tk » Mon May 10, 2004 3:50 pm

I should have been more clear, gnome had an error and when I ctrl+alt+backspaced there were two users logged in with my username.
tk
user
user
 
Posts: 12
Joined: Sat Apr 24, 2004 8:23 pm

Postby Void Main » Mon May 10, 2004 3:59 pm

What is the output of the "who" command? Do you have two entries with ":0" as the tty?
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby tk » Mon May 10, 2004 5:41 pm

Output from who is:

tk :0 May 9 16:38
tk pts/0 May 10 20:40 (:0.0)
tk
user
user
 
Posts: 12
Joined: Sat Apr 24, 2004 8:23 pm

Postby Void Main » Mon May 10, 2004 6:07 pm

Ok, that looks normal to me. Where exactly do you see a problem?

Here's what I get:
Code: Select all
$ who
voidmain     :0           May 10 18:10
voidmain     pts/1        May 10 19:00 (:0.0)


The ":0" entry is my X login and the "pts/1" is my terminal that I have open (gnome-terminal) running a bash as a login shell. This is normal behavior.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby tk » Mon May 10, 2004 6:33 pm

Oh, alright :)

Thanks for the fast replies btw
tk
user
user
 
Posts: 12
Joined: Sat Apr 24, 2004 8:23 pm


Return to Fedora/Red Hat

Who is online

Users browsing this forum: No registered users and 0 guests

cron