Re: [systemd-devel] Help with pam_systemd..

2012-06-11 Thread Kok, Auke-jan H
On Mon, Jun 11, 2012 at 12:49 PM, Peeters Simon wrote: >> Note that we should probably not use "--address=systemd:" since it >> passes DBUS_SESSION_BUS_ADDRESS=systemd:,guid= >> to all dbus-activated services, which is entirely broken. However, we >> want to point >> to the user bus for this user,

Re: [systemd-devel] Help with pam_systemd..

2012-06-11 Thread Peeters Simon
> Note that we should probably not use "--address=systemd:" since it > passes DBUS_SESSION_BUS_ADDRESS=systemd:,guid= > to all dbus-activated services, which is entirely broken. However, we > want to point > to the user bus for this user, which is conveniently in > %t/dbus/user_bus_socket, just > a

Re: [systemd-devel] Help with pam_systemd..

2012-05-30 Thread Shawn Ferris
> It would help if you could post your unit files somewhere. > > tar up /usr/lib/systemd/user ? Certainly.. here you go: https://www.dropbox.com/s/8lxgh04jnpuecat/unit-files.tar.bz2 At this risk of not missing anything, I tar'd up all unit files.. including those included with the distro. And he

Re: [systemd-devel] Help with pam_systemd..

2012-05-30 Thread Kok, Auke-jan H
On Thu, May 31, 2012 at 4:42 AM, Shawn Ferris wrote: >> It looks like dbus will need a patch upstream to work properly in the >> user session, so, I'm looking at that at this time. > > Is this potentially why on boot, mine might work 1 out of every 30 > boots or so? I thought it was timing (and I

Re: [systemd-devel] Help with pam_systemd..

2012-05-30 Thread Shawn Ferris
> It looks like dbus will need a patch upstream to work properly in the > user session, so, I'm looking at that at this time. Is this potentially why on boot, mine might work 1 out of every 30 boots or so? I thought it was timing (and I still believe it is, I don't know with what), but I've set up

Re: [systemd-devel] Help with pam_systemd..

2012-05-30 Thread Kok, Auke-jan H
On Tue, May 29, 2012 at 9:39 PM, Kok, Auke-jan H wrote: > On Tue, May 29, 2012 at 7:56 PM, Kok, Auke-jan H > wrote: >> On Tue, May 29, 2012 at 12:52 PM, Colin Guthrie wrote: >>> 'Twas brillig, and Kok, Auke-jan H at 27/05/12 08:05 did gyre and gimble: $ cat /usr/lib/systemd/user/dbus.servic

Re: [systemd-devel] Help with pam_systemd..

2012-05-29 Thread Kok, Auke-jan H
On Tue, May 29, 2012 at 7:56 PM, Kok, Auke-jan H wrote: > On Tue, May 29, 2012 at 12:52 PM, Colin Guthrie wrote: >> 'Twas brillig, and Kok, Auke-jan H at 27/05/12 08:05 did gyre and gimble: >>> $ cat /usr/lib/systemd/user/dbus.service >>> [Unit] >>> Description=D-Bus System Message Bus >>> Requir

Re: [systemd-devel] Help with pam_systemd..

2012-05-29 Thread Kok, Auke-jan H
On Tue, May 29, 2012 at 12:52 PM, Colin Guthrie wrote: > 'Twas brillig, and Kok, Auke-jan H at 27/05/12 08:05 did gyre and gimble: >> $ cat /usr/lib/systemd/user/dbus.service >> [Unit] >> Description=D-Bus System Message Bus >> Requires=dbus.socket >> >> [Service] >> ExecStartPre=/usr/bin/dbus-uui

Re: [systemd-devel] Help with pam_systemd..

2012-05-29 Thread Colin Guthrie
'Twas brillig, and Kok, Auke-jan H at 27/05/12 08:05 did gyre and gimble: > $ cat /usr/lib/systemd/user/dbus.service > [Unit] > Description=D-Bus System Message Bus > Requires=dbus.socket > > [Service] > ExecStartPre=/usr/bin/dbus-uuidgen --ensure > ExecStartPre=-/bin/rm -f /var/run/messagebus.pid

Re: [systemd-devel] Help with pam_systemd..

2012-05-27 Thread Kok, Auke-jan H
On Sun, May 27, 2012 at 9:23 AM, Mantas Mikulėnas wrote: > On Sat, May 26, 2012 at 8:12 PM, Kok, Auke-jan H > wrote: >> On Sat, May 26, 2012 at 3:31 PM, Shawn Ferris wrote: >>> #PAM-1.0 >>> auth       required     pam_unix.so >>> auth       required     pam_nologin.so >>> account    required    

Re: [systemd-devel] Help with pam_systemd..

2012-05-27 Thread Shawn Ferris
On Sun, May 27, 2012 at 1:13 AM, Kok, Auke-jan H wrote: > On Sun, May 27, 2012 at 5:51 AM, Shawn Ferris wrote: >> On Sat, May 26, 2012 at 10:00 PM, Shawn Ferris >> wrote: 1) systemctl --system start user@.service (may not work, but is usable as a template) 2) ../user/default.targ

Re: [systemd-devel] Help with pam_systemd..

2012-05-27 Thread Shawn Ferris
On Sun, May 27, 2012 at 1:05 AM, Kok, Auke-jan H wrote: > $ grep DBUS /usr/lib/systemd/system/user@.service > Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%I/dbus/user_bus_socket Yup.. had that > $ cat /usr/lib/systemd/user/dbus.socket > [Unit] > Description=D-Bus System Message Bus

Re: [systemd-devel] Help with pam_systemd..

2012-05-27 Thread Mantas Mikulėnas
On Sat, May 26, 2012 at 8:12 PM, Kok, Auke-jan H wrote: > On Sat, May 26, 2012 at 3:31 PM, Shawn Ferris wrote: >> #PAM-1.0 >> auth       required     pam_unix.so >> auth       required     pam_nologin.so >> account    required     pam_unix.so >> password   required     pam_unix.so >> session    r

Re: [systemd-devel] Help with pam_systemd..

2012-05-27 Thread Kok, Auke-jan H
On Sun, May 27, 2012 at 5:51 AM, Shawn Ferris wrote: > On Sat, May 26, 2012 at 10:00 PM, Shawn Ferris wrote: >>> 1) systemctl --system start user@.service (may not work, but is >>> usable as a template) >>> 2) ../user/default.target needs to define something meaningful >>> 3) "session optional pa

Re: [systemd-devel] Help with pam_systemd..

2012-05-27 Thread Kok, Auke-jan H
On Sun, May 27, 2012 at 5:51 AM, Shawn Ferris wrote: > On Sat, May 26, 2012 at 10:00 PM, Shawn Ferris wrote: >>> 1) systemctl --system start user@.service (may not work, but is >>> usable as a template) >>> 2) ../user/default.target needs to define something meaningful >>> 3) "session optional pa

Re: [systemd-devel] Help with pam_systemd..

2012-05-26 Thread Shawn Ferris
On Sat, May 26, 2012 at 10:00 PM, Shawn Ferris wrote: >> 1) systemctl --system start user@.service (may not work, but is >> usable as a template) >> 2) ../user/default.target needs to define something meaningful >> 3) "session optional pam_systemd.so" in /etc/pam.d/systemd-auth >> 4) proper dbus.s

Re: [systemd-devel] Help with pam_systemd..

2012-05-26 Thread Kok, Auke-jan H
On Sat, May 26, 2012 at 5:29 PM, Shawn Ferris wrote: > On Sat, May 26, 2012 at 11:12 AM, Kok, Auke-jan H > wrote: > >> which pam entry is this? /etc/pam.d/?? > > Just 'login' for now.. didn't want to keep breaking ssh by using other. > >> this needs to be >> >> session   optional   pam_systemd.so

Re: [systemd-devel] Help with pam_systemd..

2012-05-26 Thread Shawn Ferris
On Sat, May 26, 2012 at 11:12 AM, Kok, Auke-jan H wrote: > which pam entry is this? /etc/pam.d/?? Just 'login' for now.. didn't want to keep breaking ssh by using other. > this needs to be > > session   optional   pam_systemd.so ... I tried that too and it didn't change anything, so I put it b

Re: [systemd-devel] Help with pam_systemd..

2012-05-26 Thread Kok, Auke-jan H
On Sat, May 26, 2012 at 3:31 PM, Shawn Ferris wrote: > Hey everyone, > > I've got a Buildroot FS and was trying to get 'system --user' > functionality working. I didn't have PAM installed (it wasn't > available in buildroot), but was informed that it was a must, so I > have added it to my system n

[systemd-devel] Help with pam_systemd..

2012-05-26 Thread Shawn Ferris
Hey everyone, I've got a Buildroot FS and was trying to get 'system --user' functionality working. I didn't have PAM installed (it wasn't available in buildroot), but was informed that it was a must, so I have added it to my system now. Pam seems to be working perfectly as in I can log into the sy