LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497

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: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,834

Original Poster
Rep: Reputation: 108Reputation: 108
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: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,834

Original Poster
Rep: Reputation: 108Reputation: 108
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: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,834

Original Poster
Rep: Reputation: 108Reputation: 108
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: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,834

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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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