[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-07-20 Thread Manuel Iglesias Alonso
I have scripts that send graphical messages to logged-in users using the 
display names printed by 'w' or 'who'.
I have been using them, for more than a decade, with different Linux distros, 
but they would fail with this lightdm setup. :-(

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-07-20 Thread Wart
I see the same behavior as Manuel.  In Ubuntu 10.04, utmp.ut_host is
filled in with the X display name (such as :0), but in the proposed
update utmp.ut_host is left empty.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-07-19 Thread Manuel Iglesias Alonso
>From ToZ (toz) message:
{
toz@xubi:~$ w
 14:35:15 up 3 min, 1 user, load average: 6.23, 4.33, 1.80
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
toz tty7 14:34 3:22 0.98s 0.00s /bin/sh /etc/xd
}

Display name (':0' or whatever ) is missing! It should be:
{
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
toz tty7 :0 14:34 3:22 0.98s 0.00s /bin/sh /etc/xd
}

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-07-19 Thread Lauri Tirkkonen
Sorry, that should've been lp:~lotheac/lightdm/wtmp_precise -- I'm too
tired.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-07-19 Thread Lauri Tirkkonen
The 'last' issue is simple to fix: lp:~lotheac/lightdm/utmpx

Should I propose a merge to lp:ubuntu/precise-proposed/lightdm or
somewhere else?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-07-19 Thread Sebastien Bacher
setting verification-done, while it's not perfect it's an improvement
and verification-failed would make the upload be rejected until the
whole issue is fixed, it's better to get part of it fixed and the
remaining issues sorted later rather than getting nothing

** Tags removed: verification-needed
** Tags added: verification-done

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-07-19 Thread ToZ
Yes, same results with last in quantal. Sorry, but didn't check last
earlier.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-07-19 Thread ToZ
I can confirm Gerry's observations with precise-proposed:

toz@xubi:~$ who
toz  tty7 2012-07-19 14:34

toz@xubi:~$ w
 14:35:15 up 3 min,  1 user,  load average: 6.23, 4.33, 1.80
USER TTY  FROM  LOGIN@   IDLE   JCPU   PCPU WHAT
toz  tty7  14:343:22   0.98s  0.00s /bin/sh /etc/xd

toz@xubi:~$ last | head -3
reboot   system boot  3.2.0-26-generic Thu Jul 19 14:32 - 14:35  (00:03)
toz  tty1  Thu Jul 19 14:28 - down   (00:02)
toz  tty1  Thu Jul 19 14:28 - 14:28  (00:00)

And this after one successful login and logout. Will check the last
entry with Quantal.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-07-19 Thread Gerry
After applying the precise-proposed upgrade, The 'w' and 'who' commands
now show an entry upon logging into a session via lightdm.

But the 'last' command still does not show that user as logged in.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-07-19 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/precise-proposed/lightdm

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-07-19 Thread Brian Murray
Hello ToZ, or anyone else affected,

Accepted lightdm into precise-proposed. The package will build now and
be available at
http://launchpad.net/ubuntu/+source/lightdm/1.2.1-0ubuntu1.1 in a few
hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to
enable and use -proposed.  Your feedback will aid us getting this update
out to other Ubuntu users.

If this package fixes the bug for you, please change the bug tag from
verification-needed to verification-done.  If it does not, change the
tag to verification-failed.  In either case, details of your testing
will help us make a better decision.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance!

** Changed in: lightdm (Ubuntu Precise)
   Status: Triaged => Fix Committed

** Tags added: verification-needed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-07-18 Thread Scott Kitterman
@Kevin: There's been no fix for Precise on this yet, so please don't
mark it fix released yet.

** Changed in: lightdm (Ubuntu Precise)
   Status: Fix Released => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-07-18 Thread Kevin Green
** Changed in: lightdm (Ubuntu Precise)
   Status: Triaged => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-07-17 Thread ToZ
I confirm. Quantal, fully updated:

toz@quantalU:~$ w
 09:44:08 up 7 min,  2 users,  load average: 1.03, 0.83, 0.41
USER TTY  FROM LOGIN@   IDLE   JCPU   PCPU WHAT
toz  tty7  09:426:50  11.24s  0.55s gnome-session -
toz  pts/2:0   09:420.00s  0.44s  0.02s w

toz@quantalU:~$ who
toz  tty7 2012-07-17 09:42
toz  pts/22012-07-17 09:42 (:0)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-07-17 Thread Elfy
In Quantal - fully updated

w gives

09:15:03 up 3 min,  1 user,  load average: 0.92, 0.79, 0.34
USER TTY  FROM LOGIN@   IDLE   JCPU   PCPU WHAT
hob  tty7  09:123:06  11.00s  0.02s /bin/sh /etc/xd

who gives

hob  tty7 2012-07-17 09:12

and  dpkg-query --show lightdm && last -n1 gives me

lightdm 1.3.2-0ubuntu1
reboot   system boot  3.5.0-4-generic  Tue Jul 17 09:12 - 09:18  (00:06)

wtmp begins Sun Jul 15 09:02:25 2012

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-07-17 Thread Lauri Tirkkonen
The package in precise-proposed works for me.

lightdm 1.2.1-0ubuntu1.1
ltirkkon tty7 2012-07-17 10:33
 10:34:34 up 37 min,  1 user,  load average: 0.55, 0.53, 0.49
USER TTY  FROM  LOGIN@   IDLE   JCPU   PCPU WHAT
ltirkkon tty7  10:33   37:24   1.13s  0.09s /bin/sh /etc/xd

However, the included pam config doesn't stack pam_lastlog, so wtmp is still 
not being updated (it should show my desktop session as 'still logged in'):
flashman ~ % ssh root@test-precise 'dpkg-query --show lightdm && last -n1' 
lightdm 1.2.1-0ubuntu1.1
root pts/0flashman Tue Jul 17 10:32 - 10:32  (00:00)

wtmp begins Fri Jul 13 19:23:13 2012

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-07-16 Thread Robert Ancell
elfy, that looks like it's not working for you - you should see two
entries (see the bug description). I've just uploaded this to quantal
now and precise-proposed.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-07-12 Thread Elfy
Working here on 12.10.

 07:25:14 up  3:03,  1 user,  load average: 2.31, 1.66, 1.60
USER TTY  FROM LOGIN@   IDLE   JCPU   PCPU WHAT

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-07-12 Thread Robert Ancell
** Changed in: lightdm
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-07-12 Thread Robert Ancell
Well, I checked and it didn't seem to be working at all.  I've prepped
the SRU but I'll upload the fix to Quantal next week and check it works
there first.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-07-12 Thread Robert Ancell
** Changed in: lightdm (Ubuntu)
   Status: Fix Released => Fix Committed

** Changed in: lightdm
   Status: Fix Released => Fix Committed

** Description changed:

- When logged into a graphical session, I get no acknowledgement from who,
- w or last that I am logged in:
+ Impact:
+ Systems using LightDM have no entries in the utmp record for logins, so tools 
like 'w' and 'who' do not show LightDM sessions.
  
- $ who
- $ w
- 16:48:14 up 1 day,  1:08,  0 users,  load average: 0.68, 0.83, 0.84
- USER TTY  FROM  LOGIN@   IDLE   JCPU   PCPU WHAT
+ Testcase:
+ 1. Start Ubuntu system
+ 2. Log into session
+ 3. Open gnome-terminal
+ 4. Run 'who' command
+ Expected result:
+ You should see TWO entries (the first is from LightDM, the second is from 
gnome-terminal):
+   tty7   -MM-DD HH:MM
+   pts/0  -MM-DD HH:MM (:0)
+ Observed result:
+ You see only one entry:
+   pts/0  -MM-DD HH:MM (:0)
  
- last only reports tty logins, not graphical logins.
- 
- ProblemType: Bug
- DistroRelease: Ubuntu 11.10
- Package: lightdm 1.0.1-0ubuntu6
- ProcVersionSignature: Ubuntu 3.0.0-12.19-generic-pae 3.0.4
- Uname: Linux 3.0.0-12-generic-pae i686
- NonfreeKernelModules: fglrx
- ApportVersion: 1.23-0ubuntu2
- Architecture: i386
- Date: Fri Oct  7 16:47:23 2011
- InstallationMedia: Xubuntu 11.10 "Oneiric Ocelot" - Beta i386 (20110921.3)
- ProcEnviron:
-  LANGUAGE=en_CA:en
-  PATH=(custom, user)
-  LANG=en_CA.UTF-8
-  SHELL=/bin/bash
- SourcePackage: lightdm
- UpgradeStatus: No upgrade log present (probably fresh install)
+ Regression potential:
+ Bugs in utmp code cause cause issues logging in

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-07-12 Thread Stéphane Graber
Robert: This landed a few weeks ago in Quantal, assuming this worked
fine, can you please prepare the SRUs and upload them now?

** Changed in: lightdm (Ubuntu Precise)
   Status: Confirmed => Triaged

** Changed in: lightdm (Ubuntu Oneiric)
   Status: Confirmed => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-06-20 Thread Robert Ancell
** Changed in: lightdm
   Status: Fix Committed => Fix Released

** Changed in: lightdm (Ubuntu)
   Status: Triaged => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-06-18 Thread Ubuntu QA Website
This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/870297

** Tags added: iso-testing

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-06-11 Thread Robert Ancell
Support for utmp has been added to lighdm 1.3.1 and will be backported
to 1.2.x when it is confirmed it works correctly.

** Changed in: lightdm
   Status: Confirmed => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-05-23 Thread Lauri Tirkkonen
** Branch linked: lp:~lotheac/lightdm/utmpx

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-05-23 Thread Lauri Tirkkonen
Okay. I moved the branch based on ubuntu/precise/lightdm to
lp:~lotheac/lightdm/utmpx_precise and the one based on upstream is
lp:~lotheac/lightdm/utmpx. Upstream doesn't have debian/lightdm.pam
though (since it's packaging stuff), so that should still be merged to
the Ubuntu branch.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-05-23 Thread Sebastien Bacher
Thanks a lot Lauri, is there any chance you could also open a merge
request against lp:lightdm (i.e the upstream project)? I'm not sure the
upstream maintainers are watching the Ubuntu branches as regularly as
they watch the work going on the project

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-05-22 Thread Sebastien Bacher
** Branch linked: lp:~lotheac/lightdm/utmpx

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-05-22 Thread Lauri Tirkkonen
Ok, now that I've finally figured out how exactly lightdm works in this
regard, I've pushed my changes to lp:~lotheac/lightdm/utmpx.

At first, I was trying to check for XDG_SESSION_CLASS_USER, but it seems
that is never set. The authentication session (which talks to the
greeter) has no class,  and that same session is used to start the
user's process (hence it needs PAM very much). If authentication fails,
the authentication session is restarted. I just check if we're a greeter
after authentication, and if so, skip pam_{open,close}_session and write
the utmpx entry.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-05-22 Thread Sebastien Bacher
@Lauri: I don't think lightdm has an IRC channel but you can find most
of people working on it on #ubuntu-desktop @ irc.ubuntu.com,
robert_ancell is usually there during .nz work hours but you should find
people online during european or american work hours as well

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-05-22 Thread Lauri Tirkkonen
... sorry, that should be "skipping PAM for non-user sessions"

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-05-22 Thread Lauri Tirkkonen
Sebastien, yeah, that's the issue. I'm working on skipping PAM for user
sessions right now, actually, but it's probably going to be a little
ugly since I'm trying to keep the changes small.

On a side note, does lightdm have an IRC channel this could be discussed
in? I couldn't seem to find a reference to one.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-05-22 Thread Sebastien Bacher
@Lauri: thanks for your work there, is there any issue left with your
patch? Is the issue that the greeter sessions are counted as logins with
it?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-05-21 Thread Karolis
i have this issue on xubuntu 12.04. lightdm version 1.2.1-0ubuntu1
i'm only half year old in linux world but in very beginning i remember being 
very confused when who and w didn't produse output. didn't consider this as a 
bug back then but more like un-fully-thought-about function or my lack of 
experience. now finding that this is an actual bug i can only express some 
positive wishing thoughts, as i am not as confident yet about getting involved 
deeper into fixing it

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-05-19 Thread forestpiskie
Quantal is the same here. Though it might be premature to comment on
that at the moment.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-05-16 Thread Sebastien Bacher
** Changed in: lightdm (Ubuntu Precise)
Milestone: None => ubuntu-12.04.1

** Changed in: lightdm (Ubuntu)
   Status: Confirmed => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-05-03 Thread Lauri Tirkkonen
Ok, but what about PAM? Greeters should run as the same user lightdm
does, so authentication is already skipped for them (do_authenticate is
false), but do pam_open_session or pam_acct_mgmt make sense? If we skip
pam_open_session for greeters, we can use pam_lastlog for actual user
sessions, but I'm thinking we should skip PAM altogether if it's not an
actual user session. That would require some refactoring.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-05-02 Thread Robert Ancell
Unfortunately greeters need to have a console kit session as they access
console kit to perform shutdown/restart and that requires a session to
be open.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-05-02 Thread Lauri Tirkkonen
Robert, but that wouldn't help for wtmp/lastlog, since pam is still
used. Is there a reason it is for greeters, though, and should greeters
really have a consolekit session either? Couldn't we just simply fork
without doing most of the stuff in session_child_run if we're starting a
greeter?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-05-02 Thread Robert Ancell
Lauri, great work!  You should move the code to the same location as
ck_open_session and check if the record shouldn't be written for
greeters then skip if class is XDG_SESSION_CLASS_GREETER.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-04-30 Thread Manuel Iglesias Alonso
A fresh install of the definitive release of precise (Ubuntu 12.04) still shows 
this bug :-(
Venerable commands like 'w' and 'who' should work correctly in each and every 
distro!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-04-19 Thread Ubuntu Foundation's Bug Bot
The attachment "update utmp on session start and use pam_lastlog to
record wtmp/lastlog" of this bug report has been identified as being a
patch.  The ubuntu-reviewers team has been subscribed to the bug report
so that they can review the patch.  In the event that this is in fact
not a patch you can resolve this situation by removing the tag 'patch'
from the bug report and editing the attachment so that it is not flagged
as a patch.  Additionally, if you are member of the ubuntu-reviewers
team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by
Brian Murray.  Please contact him regarding any issues with the action
taken in this bug report.]

** Tags added: patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-04-19 Thread Lauri Tirkkonen
I've written a patch that updates utmp and uses pam_lastlog for wtmp. It seems
to work:

root@test-precise:~# w
 18:22:27 up  1:16,  2 users,  load average: 2.44, 1.03, 0.68
USER TTY  FROM  LOGIN@   IDLE   JCPU   PCPU WHAT
root pts/0remotehost   17:060.00s  3.40s  0.01s w
lotheac  tty7  18:231:17m  1.07s  0.67s awesome

But, there's a problem: since the greeter session is started the same way as the
user session, we get unnecessary entries by the lightdm user when the login
screen is visible:

root@test-precise:~# who
root pts/02012-04-19 17:06 (this is an ssh session)
lightdm  tty7 2012-04-19 18:05
root@test-precise:~# w
 18:06:50 up  1:00,  2 users,  load average: 0.59, 0.41, 0.42
USER TTY  FROM  LOGIN@   IDLE   JCPU   PCPU WHAT
root pts/0remotehost   17:060.00s  3.03s  0.01s w
lightdm  tty7  18:051:00m  0.36s  0.01s /bin/sh 
/usr/lib/lightdm/lightdm-greeter-session /usr/sbin/lightdm-gtk-greeter
root@test-precise:~# last -n3
lightdm  :0Thu Apr 19 18:05   still logged in   
lotheac  :0Thu Apr 19 17:56 - 18:05  (00:09)
lightdm  :0Thu Apr 19 17:56 - 17:56  (00:00)

wtmp begins Mon Apr 16 14:40:28 2012

I don't think greeter sessions should be handled identically to user sessions;
I'm not sure why it needs to go through the pam stack at all. Maybe someone
more familiar with lightdm can shed some light on this?

The attached patch isn't finished, since it introduces the issue described
above.


** Patch added: "update utmp on session start and use pam_lastlog to record 
wtmp/lastlog"
   
https://bugs.launchpad.net/ubuntu/oneiric/+source/lightdm/+bug/870297/+attachment/3094021/+files/utmp.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-04-18 Thread Robert Ancell
Sebastian, that sums it up exactly.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-04-18 Thread Lauri Tirkkonen
I looked into this a bit. There is a pam module that updates lastlog and
wtmp (pam_lastlog(8)), which could be stacked in the lightdm pam config.
It doesn't update utmp, however, and utmp is what w(1) and who(1) look
at -- see the discussion at http://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=659957.

I guess as it stands, lightdm needs to write the utmp entry, like
login(1), since nothing else does. I also propose to add the pam_lastlog
module to lightdm's stack to keep lastlog and wtmp up to date.

** Bug watch added: Debian Bug tracker #659957
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=659957

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-04-18 Thread Sebastien Bacher
The reason that issue seems to be "stucked" is the lack of clear
documentation about wtmp, why it's useful, how it's managed and if
lightdm is the "right" place that handling should be done (compared to
i.e pam or some other place).

Does anyone have some "specs" or clear documentation on the topic which
would document what needs to be done and why and help to understand if
lightdm is the "right place"?

The gdm copied code before suggest lightdm should call pututxline() on
login, is there really the right thing to do or is that "legacy code"?
Lightdm tries to avoid doing stuff "just because that's how it has been
copied around since unix" and rather get issues fixed at the right place

Robert, is that an accurate summary of the situation?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-04-18 Thread Raphaël Hertzog
On Wed, 18 Apr 2012, Alex Bachmeier wrote:
> In the two cases where the user shows up, both users have a gnome-
> terminal open.

That doesn't count. We're interested in lines that correspond
to the main login. They have a local TTY like this (here paste
from my debian unstable box but it should be similar for ubuntu):

USER TTY  FROM LOGIN@   IDLE   JCPU   PCPU WHAT
rhertzog tty7 :0   10Apr12  7days  1:41m  4.76s gnome-session

Notice that we have "tty7" in the TTY field and not "pts/".

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Pre-order a copy of the Debian Administrator's Handbook and help
liberate it: http://debian-handbook.info/liberation/

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-04-18 Thread Alex Bachmeier
I'm running precise in a computer lab, so maybe I can shed some light on your 
theory:
We have roughly 10 different desktop environments installed
current statistics:

host 1: gnome-session --session=buntu, no user in w
host 2: gnome-session --session=ubuntu, no user in w
host 3: gnome-session --session=ubuntu, no user in w
host 4: gnome-session --session=ubuntu, no user in w
host 5: gnome-session --session=gnome-classic, no user in w
host 6: gnome-session --session=ubuntu, user shows up in w
host 7: gnome-session --session=ubuntu, user shows up in w

In the two cases where the user shows up, both users have a gnome-
terminal open.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-04-18 Thread Raphaël Hertzog
On Wed, 18 Apr 2012, Adam Conrad wrote:
> For what it's worth, I get no utmp/wtmp love here either.  Martin wanted
> me to comment in case Robert wanted to use me or my laptop as a guinea
> pig. :P

I wonder if the person who are not affected are using a session that's not
the default one?

Maybe something else in the stack is doing the utmp/wtmp recording for
them (gnome-session?).

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Pre-order a copy of the Debian Administrator's Handbook and help
liberate it: http://debian-handbook.info/liberation/

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-04-18 Thread Adam Conrad
For what it's worth, I get no utmp/wtmp love here either.  Martin wanted
me to comment in case Robert wanted to use me or my laptop as a guinea
pig. :P

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-04-16 Thread Martin Pitt
** Also affects: acpi-support (Ubuntu)
   Importance: Undecided
   Status: New

** No longer affects: acpi-support (Ubuntu Precise)

** No longer affects: acpi-support (Ubuntu Oneiric)

** No longer affects: acpi-support (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-04-12 Thread Martin Pitt
Dropping milestone. Not reproducible easily, and this is SRUable.

** Changed in: lightdm (Ubuntu Precise)
Milestone: ubuntu-12.04 => None

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-04-10 Thread michaelhood
I'm on an updated Ubuntu 12.04 (as opposed to Xubuntu), and can still
confirm this issue..

`ck-list-sessions` does show the session properly.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-04-09 Thread forestpiskie
Clean install of Xubuntu Beta 2 and updated.

hobgoblin@hobgoblin:~$ w
 09:49:18 up 1 min,  0 users,  load average: 2.41, 0.75, 0.26
USER TTY  FROM  LOGIN@   IDLE   JCPU   PCPU WHAT

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-03-26 Thread forestpiskie
I too can confirm the issue.

I have 3 machines all running completely updated 12.04 Xubuntu.

None show any users.

2 of the machines are upgraded from 11.10 Xubuntu - the other was a
clean install of 12.04

This one has also got a 12.04 Ubuntu partition - when this is booted it
show's 1 user as expected.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-03-26 Thread ToZ
I confirm Alex's findings. Fully updated, no logging.

It worked briefly for me (see post #17), but after an update it stopped
again. Its interesting that it works sometimes for some people but not
others. Not sure if it might be helpful, but attached is a listing of
all the installed versions of lightdm's dependencies. From:

$ for i in $(apt-cache depends lightdm  | grep Depends | awk '{ print $2
}'); do dpkg -l | grep  $i; done

** Attachment added: "lightdm-depends.txt"
   
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/870297/+attachment/2940775/+files/lightdm-depends.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-03-26 Thread Alex Bachmeier
I can still reproduce this on my lab machines with all updates
installed.

Mar 26 12:05:28 $HOSTNAME lightdm: pam_unix(lightdm:session): session opened 
for user $USER by (uid=0)
Mar 26 12:05:28 $HOSTNAME lightdm: pam_ck_connector(lightdm:session): nox11 
mode, ignoring PAM_TTY :0
Mar 26 12:05:32 $HOSTNAME polkitd(authority=local): Registered Authentication 
Agent for unix-session:/org/freedesktop/ConsoleKit/Session2 (system bus name 
:1.41 [/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1], object 
path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)

while last shows nothing:
---# last -n 10
root pts/0devel01.informat Mon Mar 26 12:52   still logged in   
reboot   system boot  3.2.0-20-generic Mon Mar 26 12:05 - 12:54  (00:49)
reboot   system boot  3.2.0-20-generic Mon Mar 26 12:02 - 12:54  (00:51)
reboot   system boot  3.2.0-20-generic Mon Mar 26 12:00 - 12:54  (00:53)   

w only shows my ssh session
---# w
 12:54:58 up 50 min,  1 user,  load average: 0.00, 0.01, 0.05
USER TTY  FROM  LOGIN@   IDLE   JCPU   PCPU WHAT
root pts/0$REMOTE_HOST 12:520.00s  0.38s  0.00s w


console kit can display the session:

---# ck-list-sessions 
Session2:
unix-user = '14443'
realname = 'Meow Meow'
seat = 'Seat1'
session-type = ''
active = TRUE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2012-03-26T10:05:28.151601Z'
login-session-id = '4294967295'

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-03-26 Thread Martin Pitt
This works fine for me on current precise. Can you confirm that you can
still reproduce this?

** Changed in: lightdm (Ubuntu Precise)
Milestone: ubuntu-12.04-beta-2 => ubuntu-12.04

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-03-22 Thread Kate Stewart
** Tags added: rls-mgr-p-tracking

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-03-19 Thread Jason Warner
** Tags removed: rls-p-tracking

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-03-13 Thread Harvey Muller
Bob,

Sorry for the delayed response.

In Oneiric, 'who' and 'w' report the logged in user, but only from an
active open terminal. What this means for example, is that the asus-
touchpad.sh script provided by acpi-support only works properly when run
from a terminal. When the script is run by udev, 'who' does not report
the logged in user, because lightdm, unlike gdm, does not currently seem
to modify utmp/wtmp.

I will test a recent Precise daily-live as you have requested to see if
this behavior has changed.

Best,

Harvey

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-03-11 Thread forestpiskie
More updates - no change

$ apt-cache policy lightdm
lightdm:
  Installed: 1.1.7-0ubuntu1
  Candidate: 1.1.7-0ubuntu1
  Version table:
 *** 1.1.7-0ubuntu1 0
500 http://gb.archive.ubuntu.com/ubuntu/ precise/main i386 

Packages
100 /var/lib/dpkg/status

$ w
 20:29:37 up  4:16,  0 users,  load average: 0.17, 0.13, 0.14
USER TTY  FROM  LOGIN@   IDLE   JCPU   PCPU WHAT

$ who

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-03-07 Thread ToZ
And its gone (after some updates).

$ apt-cache policy lightdm
lightdm:
  Installed: 1.1.6-0ubuntu1
  Candidate: 1.1.6-0ubuntu1
  Version table:
 *** 1.1.6-0ubuntu1 0
500 http://ca.archive.ubuntu.com/ubuntu/ precise/main i386 Packages
100 /var/lib/dpkg/status

$ w
 21:57:39 up 3 min,  0 users,  load average: 4.06, 2.31, 0.95
USER TTY  FROM  LOGIN@   IDLE   JCPU   PCPU WHAT

$ who

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-03-07 Thread Balwinder S Dheeman
I attempted to build and install debian packages for updated lightdm +
lightdm-gtk-greeter 1.1.4 yesterday, which went fine; I'm expert enough
APT user and prefer installing software as packages.

I found that plain old /bin/login also stopped updating /run/utmp
/var/log/btmp and, or /var/log/wtmp; the /run is tmpfs mount on Debian
these days and /var/run is a symlink to /run

IMHO, something is or may wrong with pam files on Debian; hence w and
who report nothing under X and, or over tty terminals.

I have:

[bsd@mon ~]$ uapt version lightdm
1.1.4-1
[bsd@mon ~]$ uapt version lightdm-gtk-greeter
1.1.4-1
[bsd@mon ~]$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:Debian GNU/Linux testing (wheezy)
Release:testing
Codename:   wheezy

The lightdm and lightdm-gtk-greeter packages for Debian can be installed
from http://anu.homelinux.net/pub/Debian/

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-03-07 Thread Martin Pitt
** Tags removed: rls-mgr-p-tracking
** Tags added: rls-p-tracking

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-03-06 Thread forestpiskie
Numerous reboots since.

w
 07:21:15 up 27 min,  0 users,  load average: 1.44, 0.91, 0.56
USER TTY  FROM  LOGIN@   IDLE   JCPU   PCPU WHAT

After a login on tty1

w
 07:22:25 up 28 min,  1 user,  load average: 0.65, 0.80, 0.55
USER TTY  FROM  LOGIN@   IDLE   JCPU   PCPU WHAT
hob  tty1  07:229.00s  0.59s  0.47s -bash

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-03-06 Thread Robert Ancell
Oliver, if the fix is due to the changes made in the precise version
then no, this change will not be done in Oneiric (too complex to
backport).

forestpiskie, did you restart lightdm before checking?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-03-02 Thread Olivier Cortès
Here on up-to-date Oneiric.

I rely on this feature to display remote messages to the logged-in user.
On networked Ubuntu stations this is very important to my programs, else the 
user won't know his workstation will shutdown !!
With this bug, my program sees no-one connected and no message can be 
displayed. Very Sad. 

Any workarounds on Oneiric to get the user connected to the graphical
session ? (besides re-installing GDM...)

I see the priority is low for Oneiric. Is it planned to be fixed or will
it be fixed only in Precise ?

regards,

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-03-01 Thread forestpiskie
Still no users here.

07:23:26 up 5 min,  0 users,  load average: 0.36, 0.84, 0.47

Installed: 1.1.3-0ubuntu1

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-03-01 Thread Martin Pitt
** Changed in: lightdm (Ubuntu)
Milestone: ubuntu-12.04-beta-1 => ubuntu-12.04-beta-2

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-03-01 Thread ToZ
Interesting. Just installed the new precise beta 1 and it seems to work
again (but lightdm=1.1.3)

$ apt-cache policy lightdm
lightdm:
  Installed: 1.1.3-0ubuntu1
  Candidate: 1.1.3-0ubuntu1
  Version table:
 *** 1.1.3-0ubuntu1 0
500 http://ca.archive.ubuntu.com/ubuntu/ precise/main i386 Packages
100 /var/lib/dpkg/status


$ who
toz  pts/02012-03-01 21:04 (:0)


$ w
 21:28:19 up 26 min,  1 user,  load average: 0.36, 0.66, 0.87
USER TTY  FROM  LOGIN@   IDLE   JCPU   PCPU WHAT
toz  pts/0:0   21:040.00s  0.59s  0.01s w

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-03-01 Thread Robert Ancell
With lightdm 1.1.4 I am getting who/w records (and wasn't in 1.1.3).
This version has a major restructuring in the way PAM is accessed and
may have fixed it?!

bob@alchemy:~$ who
bob  pts/02012-03-02 09:22 (:0)
bob@alchemy:~$ w
 09:22:06 up 20 min,  1 user,  load average: 1.06, 0.56, 0.48
USER TTY  FROM  LOGIN@   IDLE   JCPU   PCPU WHAT
bob  pts/0:0   09:220.00s  0.28s  0.00s w

Could someone who uses these records please check this version - it's in
the precise queue and will be there after beta 1 freeze ends, or is
available in the ubuntu-desktop PPA now (https://launchpad.net/~ubuntu-
desktop/+archive/ppa).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-03-01 Thread Harvey Muller
Matthias said above, "...the login logs are rather unimportant on
single-user desktop systems,...".

This is not entirely correct. Those who still use acpi-support for their
machines depend on logins being properly logged in utmp/wtmp. If
/usr/bin/who does not report the logged in user, then /usr/share/acpi-
support/power-funcs will fail, and then so will everything else
depending on it, for example /etc/acpi/asus-touchpad.sh (for starters).

Fixing this bug will probably fix some hardware issues for a few folks
out there, aside from myself.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-02-23 Thread Kate Stewart
** Tags added: rls-mgr-p-tracking

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-01-27 Thread Sebastien Bacher
Ok, some pointers in case that's useful, gdm has code in gdm-session-
record.c

void
gdm_session_record_login (GPid  session_pid,
...
/* Handle wtmp */
g_debug ("Writing wtmp session record to " 
GDM_NEW_SESSION_RECORDS_FILE);
#if defined(HAVE_UPDWTMPX)
updwtmpx (GDM_NEW_SESSION_RECORDS_FILE, &session_record);
#elif defined(HAVE_UPDWTMP)
updwtmp (GDM_NEW_SESSION_RECORDS_FILE, &session_record);
#elif defined(HAVE_LOGWTMP) && defined(HAVE_UT_UT_HOST)
#if defined(HAVE_UT_UT_USER)
logwtmp (session_record.ut_line, session_record.ut_user, 
session_record.ut_host);
#elif defined(HAVE_UT_UT_NAME)
logwtmp (session_record.ut_line, session_record.ut_name, 
session_record.ut_host);
#endif
#endif

/*
 * Handle utmp
 * Update if entry already exists
 */
#if defined(HAVE_GETUTXENT)
setutxent ();

while ((u = getutxent ()) != NULL) {
if (u->ut_type == USER_PROCESS &&
(session_record.ut_line != NULL &&
 (strncmp (u->ut_line, session_record.ut_line,
   sizeof (u->ut_line)) == 0 ||
  u->ut_pid == session_record.ut_pid))) {
g_debug ("Updating existing utmp record");
pututxline (&session_record);
break;
}
}
endutxent ();

/* Add new entry if update did not work */
if (u == NULL) {
g_debug ("Adding new utmp record");
pututxline (&session_record);
}
#elif defined(HAVE_LOGIN)
login (&session_record);
#endif
}
..."

So it seems it's somewhat that is not integrated with the system stack
but that lightdm should be doing by itself on login

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-01-16 Thread Robert Ancell
** Changed in: lightdm
   Importance: Undecided => High

** Changed in: lightdm (Ubuntu Precise)
   Importance: Low => High

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-01-12 Thread Harald Hannelius
We are also an educational org and this affects us too. We are unable to
use our utmp/wtmp-based tools to monitor lab-usage.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-01-12 Thread Matthias Schiffer
Is this going to be fixed in Oneiric? While the login logs are rather
unimportant on single-user desktop systems, they are very important on
computers used by many people. This is one of the problems that
currently blocks deployment of Xubuntu 11.10 at our university. (We'd
rather not wait for 12.04 if possible as our current 10.10 system has
issues with some of our newer hardware)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2012-01-06 Thread Sebastien Bacher
** Also affects: lightdm (Ubuntu Precise)
   Importance: Low
   Status: Confirmed

** Changed in: lightdm (Ubuntu Precise)
 Assignee: (unassigned) => Robert Ancell (robert-ancell)

** Changed in: lightdm (Ubuntu Precise)
Milestone: None => ubuntu-12.04-beta-1

** Also affects: lightdm (Ubuntu Oneiric)
   Importance: Undecided
   Status: New

** Changed in: lightdm (Ubuntu Oneiric)
   Importance: Undecided => Low

** Changed in: lightdm (Ubuntu Oneiric)
   Status: New => Confirmed

** Also affects: lightdm
   Importance: Undecided
   Status: New

** Changed in: lightdm
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2011-12-08 Thread Forest
This may be the underlying cause of bug #896663.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2011-11-14 Thread Sebastien Bacher
> Is lightdm really using accountsservice? It's not listed as a
dependency nor even recommends. gdm behaves correctly and depends on
accountsservice.

liblightdm-gobject-1-0 Recommends it, and it's used over dbus yes

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2011-11-10 Thread Gerry
Is lightdm really using accountsservice?  It's not listed as a
dependency nor even recommends.  gdm behaves correctly and depends on
accountsservice.

I'm inclined to believe that it's behaving incorrectly with regards the
dbus interaction, but that's all way over my head.  Let me know if you
want me to test anything.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2011-11-10 Thread Gerry
I compiled it all and made sure that code was there and installed it and
it still doesn't show up.  Then I got the source from git and tried it
again.   No love.   I guess I'll try gdm and see if it does it too.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2011-11-10 Thread Gerry
The idea might be good, but a preliminary glance makes me wonder whether
installing that library is sufficient.

  % dpkg-query -S /usr/lib/libaccountsservice.so.0.0.0
  libaccountsservice0: /usr/lib/libaccountsservice.so.0.0.0

  %ldd /usr/lib/accountsservice/accounts-daemon | grep libaccount

returns nothing. Do I have to recompile accounts-daemon? Maybe; I'll
look into it.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2011-11-10 Thread Gerry
I just did. It did not work.  Sadly.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2011-11-10 Thread Sebastien Bacher
could somebody try with the new version?

** This bug is no longer flagged as a security vulnerability

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2011-11-10 Thread Gerry
** This bug is no longer a duplicate of bug 871070
   LightDM does not update btmp, wtmp and, or utmp records

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 870297] Re: Lightdm logins not being logged in wtmp

2011-11-10 Thread Gerry
*** This bug is a duplicate of bug 871070 ***
https://bugs.launchpad.net/bugs/871070

** This bug has been marked a duplicate of bug 871070
   LightDM does not update btmp, wtmp and, or utmp records

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870297

Title:
  Lightdm logins not being logged in wtmp

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/870297/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs