LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 03-14-2012, 01:22 PM   #16
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,261

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371

Finally got around to installing Debian Squeeze with out a login manager. Netinstall. OpenBox for the DE.

Log in and then run "who".

Logged in at tty1.

Don't have the out put on this drive or install but it is the same as what you are getting. Beats me.

Doesn't seem to effect the way anything works.
 
Old 03-14-2012, 08:06 PM   #17
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie
Posts: 1,452

Original Poster
Rep: Reputation: 83
Hya,

Thanks, it looks like that squeeze works fine.
So, I need to figure out where in wheezy is responsible for failing to detect user(s) on ttyX.

My guess is:
who (coreutil package) is NOT. (reason, same version sometimes works, sometimes NOT)
kernel (custom compiled) is NOT. (reason, same as who)
consolekit may be, but probably NOT, because who works without consolekit.

Currently,
I am trying to decipher /var/run/utmp file.

cheers
 
Old 03-28-2012, 08:39 PM   #18
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie
Posts: 1,452

Original Poster
Rep: Reputation: 83
Hya,

I am still having trouble. I do not have any experience with utmp. I am following variables by debugger, program is as simple as it could be.
Code:
#include <stdio.h>
#include <utmp.h>

int main(int argc, char **argv){

struct utmp	*rut;
struct utmp	ut;

setutent();
rut = getutent();
ut.ut_type = USER_PROCESS;

rut = getutid(&ut);

return 0;

}
Can anybody direct me where next step is?

cheers
 
Old 04-23-2012, 09:53 PM   #19
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie
Posts: 1,452

Original Poster
Rep: Reputation: 83
Hya,

After long interval, still not solved.

Key part of ource code of who (from coreutils) looks like
Code:
who (const char *filename, int options)
{
  size_t n_users;
  STRUCT_UTMP *utmp_buf;

  if (read_utmp (filename, &n_users, &utmp_buf, options) != 0)
    error (EXIT_FAILURE, errno, "%s", filename);

  if (short_list)
    list_entries_who (n_users, utmp_buf);
  else
    scan_entries (n_users, utmp_buf);

  free (utmp_buf);
}
and
Code:
#  define GET_UTMP_ENT getutxent
I guess a little bit more to go.
 
Old 07-04-2012, 07:42 PM   #20
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie
Posts: 1,452

Original Poster
Rep: Reputation: 83
Hya

Self reply.

After a long interval, I checked this issue again.
Code:
>who
penguin  tty2         2012-07-05 07:24
penguin  pts/1        2012-07-05 07:24 (:0)
penguin  pts/0        2012-07-05 07:24 (:0)
>
Two xterm's are open, after console login. So, I guess it is good now.

Have a Happy Penguin!
 
  


Reply

Tags
console, coreutils, tty, wheezy


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
[SOLVED] Newly installed debian sid & saved debian wheezy home would like to transfer files EDDY1 Linux - Newbie 11 01-20-2012 07:43 PM
LXer: Debian to offer MultiArch support with Debian Wheezy 7 in 2013 LXer Syndicated Linux News 0 08-11-2011 01:50 AM
LXer: Debian looking at a June 2012 freeze for Debian Wheezy LXer Syndicated Linux News 0 08-10-2011 10:00 AM
Info: Debian Wheezy on the way jdkaye Debian 14 09-17-2010 09:36 PM
Current logged in users deci007 Linux - Newbie 4 11-25-2009 04:06 AM


All times are GMT -5. The time now is 11:24 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration