LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 03-19-2014, 01:21 AM   #1
sryzdn
Member
 
Registered: Feb 2013
Posts: 274

Rep: Reputation: 9
A question on last command


Hi,

I am testing "last" and "who" commands on my own PC. Apart from me, who is the only user and the reboots, I can see "unknown" users in what "last" produces:

Quote:
(unknown :0 :0 Tue Jan 21 18:24 - 18:26 (00:02)
what does it mean?
 
Old 03-19-2014, 02:21 AM   #2
kooru
Senior Member
 
Registered: Sep 2012
Posts: 1,385

Rep: Reputation: 275Reputation: 275Reputation: 275
are you using Fedora?
 
Old 03-19-2014, 02:22 AM   #3
sryzdn
Member
 
Registered: Feb 2013
Posts: 274

Original Poster
Rep: Reputation: 9
Quote:
Originally Posted by kooru View Post
are you using Fedora?
yes
 
Old 03-19-2014, 02:28 AM   #4
kooru
Senior Member
 
Registered: Sep 2012
Posts: 1,385

Rep: Reputation: 275Reputation: 275Reputation: 275
Then probably: https://bugzilla.redhat.com/show_bug.cgi?id=760834
 
Old 03-19-2014, 03:03 AM   #5
sryzdn
Member
 
Registered: Feb 2013
Posts: 274

Original Poster
Rep: Reputation: 9
Quote:
Originally Posted by kooru View Post
yes I saw that too. But the "who" command returns normally, the "last" is giving me such messages.
 
Old 03-19-2014, 03:39 AM   #6
kooru
Senior Member
 
Registered: Sep 2012
Posts: 1,385

Rep: Reputation: 275Reputation: 275Reputation: 275
because "who" does see users logged now.

Code:
unknown :0 :0 Tue Jan 21 18:24 - 18:26 (00:02)
unknown is 21 Jan, so you can see it just with "last" command

Try to reproduce the bug and use who command.
 
Old 03-19-2014, 03:51 AM   #7
sryzdn
Member
 
Registered: Feb 2013
Posts: 274

Original Poster
Rep: Reputation: 9
actually, I can see many "unknown" when I execute "last", I just mentioned one of them in my post here.

Last edited by sryzdn; 03-19-2014 at 03:59 AM.
 
Old 03-19-2014, 04:06 AM   #8
kooru
Senior Member
 
Registered: Sep 2012
Posts: 1,385

Rep: Reputation: 275Reputation: 275Reputation: 275
man last
man who

when you reproduce the bug, and use who, you'll see it.

Last edited by kooru; 03-19-2014 at 04:07 AM.
 
Old 03-19-2014, 05:49 PM   #9
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
It isn't really a bug.

When one of the xdm/kdm/gdm/... session managers start they allocate a terminal (first unused terminal, which can be tty1). To record the fact that it is in use the xdm/kdm/gdm register it as in use by gdm for the purpose of running X (the :0 entry).

You get multiple entries when you use the "user switch" option of a screen lock, which directs the xdm/kdm/gdm/... session manager to start a new X server, and allocate a new terminal.

The "unknown" is put in the user field of the utmp entry because until a user logs in, it is unknown as to what user it will be.

As a last thing that can cause confusion... if a graceful shutdown is not done (or the user aborts the X server for some reason) the "unknown" can remain behind as an incomplete record, showing additional "unknown" entries.

Last edited by jpollard; 03-19-2014 at 05:51 PM.
 
1 members found this post helpful.
  


Reply



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
DD command Question Anony999 Linux - Newbie 8 04-20-2012 09:47 AM
Question about the dd command kaplan71 Linux - Software 5 04-09-2010 08:09 AM
ar command question! ss_me Linux - Newbie 1 02-16-2010 02:50 AM
Command Question gauge73 Linux - Newbie 2 02-13-2003 08:18 PM
ls -al command question Stingreen Linux - Networking 5 02-14-2002 11:32 AM

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

All times are GMT -5. The time now is 10:05 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