[opensuse] systemd pam entry missing in /etc/pam.d/xdm
Hi list, I've been struggling lately trying to download pictures fro my camera with digikam after updating to openSUSE 12.1. The problem was that I had no permisisons to write to the special file created by udev (in my case /dev/bus/usb/003/*). A bit of troubleshooting led to systemd-uaccess not being able to determine who was on seat0 (the user owning the session). The file "/run/systemd/seats/seat0" contained: $ cat /run/systemd/seats/seat0 # This is private data. Do not parse. IS_VTCONSOLE=1 After putting the "session required pam_systemd.so kill-session-processes=1" in "/etc/pam.d/xdm", and restart the session, the seats file looked like this: $ cat /run/systemd/seats/seat0 # This is private data. Do not parse. IS_VTCONSOLE=1 ACTIVE=84 ACTIVE_UID=1000 SESSIONS=84 UIDS=1000 Now systemd is able to determine who is owning the session and plugging the camera in just works flawlessly. I don't know if the module wasn't configure on my system for some reason, but since I didn't touch pam stuff since upgrading to 12.1, it seems a bug to me. Anyone else lacking this pam entry by default? Bye, Javier PS: my "/etc/pam.d/xdm" file looks like this now: $ cat /etc/pam.d/xdm #%PAM-1.0 auth include common-auth account include common-account password include common-password session required pam_loginuid.so session required pam_systemd.so kill-session-processes=1 session include common-session -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Javier Conti <javier.conti@gmail.com> [12-27-11 11:08]:
I've been struggling lately trying to download pictures fro my camera with digikam after updating to openSUSE 12.1.
I, too, upgraded from 11.4 -> MS... -> RC.. -> GM and have no automagic mounting of removable media, which I had in 11.4. Could not mount .... An unspecified error has occurred.: Authentication is required note: user id is same on 12.1 as was on 11.4
The problem was that I had no permisisons to write to the special file created by udev (in my case /dev/bus/usb/003/*).
A bit of troubleshooting led to systemd-uaccess not being able to determine who was on seat0 (the user owning the session).
The file "/run/systemd/seats/seat0" contained:
$ cat /run/systemd/seats/seat0 # This is private data. Do not parse. IS_VTCONSOLE=1
$ cat /run/systemd/seats/seat0 # This is private data. Do not parse. IS_VTCONSOLE=1 ACTIVE=1474 ACTIVE_UID=1000 SESSIONS=1 1474 UIDS=0 1000
After putting the "session required pam_systemd.so kill-session-processes=1" in "/etc/pam.d/xdm", and restart the session, the seats file looked like this:
$ cat /run/systemd/seats/seat0 # This is private data. Do not parse. IS_VTCONSOLE=1 ACTIVE=84 ACTIVE_UID=1000 SESSIONS=84 UIDS=1000
$ cat /etc/pam.d/xdm #%PAM-1.0 auth include common-auth account include common-account password include common-password session required pam_loginuid.so session include common-session
Now systemd is able to determine who is owning the session and plugging the camera in just works flawlessly.
I don't know if the module wasn't configure on my system for some reason, but since I didn't touch pam stuff since upgrading to 12.1, it seems a bug to me.
Anyone else lacking this pam entry by default?
Yes, but adding the line to /etc/pam.d/xdm has made no difference for me.
PS: my "/etc/pam.d/xdm" file looks like this now:
$ cat /etc/pam.d/xdm #%PAM-1.0 auth include common-auth account include common-account password include common-password session required pam_loginuid.so session required pam_systemd.so kill-session-processes=1 session include common-session
I *can* mount removable media via pmount utility. I have a laptop which does not have the added line in /etc/pam.d/xdm which functions as expected, automagically mounts removable media. -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tue, 2011-12-27 at 11:27 -0500, Patrick Shanahan wrote:
* Javier Conti <javier.conti@gmail.com> [12-27-11 11:08]:
I've been struggling lately trying to download pictures fro my camera with digikam after updating to openSUSE 12.1. I, too, upgraded from 11.4 -> MS... -> RC.. -> GM and have no automagic mounting of removable media, which I had in 11.4. Could not mount .... An unspecified error has occurred.: Authentication is required note: user id is same on 12.1 as was on 11.4
My workstation is a fresh install of 12.1 and automount works for USB drives; but neither of the CD/DVD drives works. Not the internal-SATA drive or the USB DVD-Drive. The external drive worked on 11.4 [with my laptop]. Neither generates a disk-changed event in 12.1 No solution. See the thread at <http://lists4.suse.de/opensuse-gnome/2011-12/msg00017.html>
The problem was that I had no permisisons to write to the special file created by udev (in my case /dev/bus/usb/003/*). A bit of troubleshooting led to systemd-uaccess not being able to determine who was on seat0 (the user owning the session).
-- System & Network Administrator [ LPI & NCLA ] <http://www.whitemiceconsulting.com> OpenGroupware Developer <http://www.opengroupware.us> Adam Tauno Williams -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Adam Tauno Williams <awilliam@whitemice.org> [12-28-11 15:02]:
On Tue, 2011-12-27 at 11:27 -0500, Patrick Shanahan wrote:
* Javier Conti <javier.conti@gmail.com> [12-27-11 11:08]:
I've been struggling lately trying to download pictures fro my camera with digikam after updating to openSUSE 12.1. I, too, upgraded from 11.4 -> MS... -> RC.. -> GM and have no automagic mounting of removable media, which I had in 11.4. Could not mount .... An unspecified error has occurred.: Authentication is required note: user id is same on 12.1 as was on 11.4
My workstation is a fresh install of 12.1 and automount works for USB drives; but neither of the CD/DVD drives works. Not the internal-SATA drive or the USB DVD-Drive. The external drive worked on 11.4 [with my laptop]. Neither generates a disk-changed event in 12.1
No solution.
See the thread at <http://lists4.suse.de/opensuse-gnome/2011-12/msg00017.html>
The problem was that I had no permisisons to write to the special file created by udev (in my case /dev/bus/usb/003/*). A bit of troubleshooting led to systemd-uaccess not being able to determine who was on seat0 (the user owning the session).
My local observances follow yours :^( add: a laptop w/12.1 as original install, not upgrade, also does not work automagically for removable media. -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wed, 2011-12-28 at 15:30 -0500, Patrick Shanahan wrote:
* Adam Tauno Williams <awilliam@whitemice.org> [12-28-11 15:02]:
On Tue, 2011-12-27 at 11:27 -0500, Patrick Shanahan wrote:
* Javier Conti <javier.conti@gmail.com> [12-27-11 11:08]:
I've been struggling lately trying to download pictures fro my camera with digikam after updating to openSUSE 12.1. I, too, upgraded from 11.4 -> MS... -> RC.. -> GM and have no automagic mounting of removable media, which I had in 11.4. Could not mount .... An unspecified error has occurred.: Authentication is required note: user id is same on 12.1 as was on 11.4 My workstation is a fresh install of 12.1 and automount works for USB drives; but neither of the CD/DVD drives works. Not the internal-SATA drive or the USB DVD-Drive. The external drive worked on 11.4 [with my laptop]. Neither generates a disk-changed event in 12.1 No solution. See the thread at <http://lists4.suse.de/opensuse-gnome/2011-12/msg00017.html> The problem was that I had no permisisons to write to the special file created by udev (in my case /dev/bus/usb/003/*). A bit of troubleshooting led to systemd-uaccess not being able to determine who was on seat0 (the user owning the session). My local observances follow yours :^( add: a laptop w/12.1 as original install, not upgrade, also does not work automagically for removable media.
Have you run "udisks --monitor" to see if any events are generated with you swap media? <http://lists4.suse.de/opensuse-gnome/2011-12/msg00032.html> -- System & Network Administrator [ LPI & NCLA ] <http://www.whitemiceconsulting.com> OpenGroupware Developer <http://www.opengroupware.us> Adam Tauno Williams -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Adam Tauno Williams <awilliam@whitemice.org> [12-29-11 09:42]:
On Wed, 2011-12-28 at 15:30 -0500, Patrick Shanahan wrote:
My local observances follow yours :^( add: a laptop w/12.1 as original install, not upgrade, also does not work automagically for removable media.
Have you run "udisks --monitor" to see if any events are generated with you swap media?
<http://lists4.suse.de/opensuse-gnome/2011-12/msg00032.html>
09:43 Crash: ~ > udisks --monitor Monitoring activity from the disks daemon. Press Ctrl+C to cancel. changed: /org/freedesktop/UDisks/devices/sdf changed: /org/freedesktop/UDisks/devices/sdf added: /org/freedesktop/UDisks/devices/sdf1 -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, 2011-12-29 at 09:45 -0500, Patrick Shanahan wrote:
* Adam Tauno Williams <awilliam@whitemice.org> [12-29-11 09:42]:
On Wed, 2011-12-28 at 15:30 -0500, Patrick Shanahan wrote:
My local observances follow yours :^( add: a laptop w/12.1 as original install, not upgrade, also does not work automagically for removable media. Have you run "udisks --monitor" to see if any events are generated with you swap media? <http://lists4.suse.de/opensuse-gnome/2011-12/msg00032.html> 09:43 Crash: ~ > udisks --monitor Monitoring activity from the disks daemon. Press Ctrl+C to cancel. changed: /org/freedesktop/UDisks/devices/sdf changed: /org/freedesktop/UDisks/devices/sdf added: /org/freedesktop/UDisks/devices/sdf1
Then you get more than me. :( -- System & Network Administrator [ LPI & NCLA ] <http://www.whitemiceconsulting.com> OpenGroupware Developer <http://www.opengroupware.us> Adam Tauno Williams -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Adam Tauno Williams <awilliam@whitemice.org> [12-29-11 16:12]:
On Thu, 2011-12-29 at 09:45 -0500, Patrick Shanahan wrote:
* Adam Tauno Williams <awilliam@whitemice.org> [12-29-11 09:42]:
On Wed, 2011-12-28 at 15:30 -0500, Patrick Shanahan wrote:
My local observances follow yours :^( add: a laptop w/12.1 as original install, not upgrade, also does not work automagically for removable media. Have you run "udisks --monitor" to see if any events are generated with you swap media? <http://lists4.suse.de/opensuse-gnome/2011-12/msg00032.html> 09:43 Crash: ~ > udisks --monitor Monitoring activity from the disks daemon. Press Ctrl+C to cancel. changed: /org/freedesktop/UDisks/devices/sdf changed: /org/freedesktop/UDisks/devices/sdf added: /org/freedesktop/UDisks/devices/sdf1
Then you get more than me. :(
Have found "udisks-glue" that *will* automagically mount optical and usb devices, but cannot make it provide <user> access. Seems to require root privileges, which is no better than using pmount and providing the /dev/... for it. My config for udisks-glue: # # Filters # filter disks { optical = false partition_table = false usage = filesystem } filter burnable { optical = true optical_disc_closed = false } filter optical { optical = true } # # The default entry (only used if no filters match) # default { post_insertion_command = "insertion-notify %device_file" } # # Additional entries # match disks { automount = true automount_options = { sync, noatime } post_mount_command = "mount-notify mounted %device_file %mount_point" post_unmount_command = "mount-notify unmounted %device_file %mount_point" } match burnable { post_insertion_command = "k3b %device_file" post_mount_command = "mount-notify mounted %device_file %mount_point" post_insertion_command = "udisks --mount %device_file --mount-options ro" } match optical { automount = true automount_options = ro post_mount_command = "mount-notify mounted %device_file %mount_point" post_insertion_command = "udisks --mount %device_file --mount-options ro" } ==================== adding any of "group, user, users, gid=####" to "automount_options" seem to stop the automounting process. also tried adding: post_insertion_command = "udisks -mount %devide_file --mount-options \ rr users" in "match disks" below "automount_options" :^((( -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/28/2011 02:30 PM, Patrick Shanahan wrote:
My local observances follow yours :^(
add: a laptop w/12.1 as original install, not upgrade, also does not work automagically for removable media.
Don't know if this is related, but a kernel or two ago, (linux-3.1.3?), several distros stopped including dev links by default (e.g. /dev/sr0 -> cdrom, etc.) I don't know what all this encompasses, but this stuff was supposed to close some security holes and be moved to udev rules IIRC or be left to the admin to create the links as needed... -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* David C. Rankin <drankinatty@suddenlinkmail.com> [12-29-11 22:45]:
On 12/28/2011 02:30 PM, Patrick Shanahan wrote:
My local observances follow yours :^(
add: a laptop w/12.1 as original install, not upgrade, also does not work automagically for removable media.
Don't know if this is related, but a kernel or two ago, (linux-3.1.3?), several distros stopped including dev links by default (e.g. /dev/sr0 -> cdrom, etc.) I don't know what all this encompasses, but this stuff was supposed to close some security holes and be moved to udev rules IIRC or be left to the admin to create the links as needed...
I still have the links :^) tks, -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Patrick Shanahan <paka@opensuse.org> [12-27-11 11:29]:
I *can* mount removable media via pmount utility.
I have a laptop which does not have the added line in /etc/pam.d/xdm which functions as expected, automagically mounts removable media.
Maybe memory is failing me here, wouldn't be the first time. But I can no longer, if ever, automagically mount removable media on the laptop. -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 28 December 2011 21:32, Patrick Shanahan <paka@opensuse.org> wrote:
* Patrick Shanahan <paka@opensuse.org> [12-27-11 11:29]:
I *can* mount removable media via pmount utility.
I never used the pmount utility, but are you sure it's not a suid binary?
I have a laptop which does not have the added line in /etc/pam.d/xdm which functions as expected, automagically mounts removable media.
Maybe memory is failing me here, wouldn't be the first time. But I can no longer, if ever, automagically mount removable media on the laptop.
I don't use the automount feature either (I'm paranoid, I know), but just for information, I've always been able to mount removable media in 12.1 without problems, even before adding the pam_systemd module as described in the original post. Probably your problem lays somewhere else. Regs, Javier
-- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Javier Conti <javier.conti@gmail.com> [12-28-11 18:03]:
On 28 December 2011 21:32, Patrick Shanahan <paka@opensuse.org> wrote:
* Patrick Shanahan <paka@opensuse.org> [12-27-11 11:29]:
I *can* mount removable media via pmount utility.
I never used the pmount utility, but are you sure it's not a suid binary?
it requires granted root permission :^) /etc/pmount.conf
I have a laptop which does not have the added line in /etc/pam.d/xdm which functions as expected, automagically mounts removable media.
Maybe memory is failing me here, wouldn't be the first time. But I can no longer, if ever, automagically mount removable media on the laptop.
I don't use the automount feature either (I'm paranoid, I know), but just for information, I've always been able to mount removable media in 12.1 without problems, even before adding the pam_systemd module as described in the original post. Probably your problem lays somewhere else.
I do and have and am able to manually mount removable and static devices just as I have been able to since ?? 5.0 in SuSE and previous that in Marmaduke. I appreciate the automatic mounting and miss it in 12.1. note that all devices listed in /etc/fstab do mount correctly including removable and networked devices. I suppose someone will blame it on systemd :^) -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 29 December 2011 00:47, Patrick Shanahan <paka@opensuse.org> wrote:
* Javier Conti <javier.conti@gmail.com> [12-28-11 18:03]:
On 28 December 2011 21:32, Patrick Shanahan <paka@opensuse.org> wrote:
* Patrick Shanahan <paka@opensuse.org> [12-27-11 11:29]:
I *can* mount removable media via pmount utility.
I never used the pmount utility, but are you sure it's not a suid binary?
it requires granted root permission :^) /etc/pmount.conf
I have a laptop which does not have the added line in /etc/pam.d/xdm which functions as expected, automagically mounts removable media.
Maybe memory is failing me here, wouldn't be the first time. But I can no longer, if ever, automagically mount removable media on the laptop.
I don't use the automount feature either (I'm paranoid, I know), but just for information, I've always been able to mount removable media in 12.1 without problems, even before adding the pam_systemd module as described in the original post. Probably your problem lays somewhere else.
I do and have and am able to manually mount removable and static devices just as I have been able to since ?? 5.0 in SuSE and previous that in Marmaduke. I appreciate the automatic mounting and miss it in 12.1.
Ok. I assumed that you were not able to mount devices from the "Device Notifier" widget as a normal user too. I now enabled the automounting feature on that widget and can confirm it works fine. I plugged a USB HD and inserted a data CD: both were automounted. Although I never really digged into that, it seems to me that in the process of mounting (and automounting) removable media systemd is not involved. What I see from a quick glance at the logs is udev and dbus are involved instead. However, mounting the CD showed that: udevd[4125]: starting '/lib/systemd/systemd-uaccess /dev/sr0 ' IMHO, that could explain why for Adam CDs and DVDs didn't work, although HDs did. I don't know why they are treated differently I'd like to know, just for information, if putting the pam_systemd entry helped Adam mounting CDs and DVDs... Regs, Javier
note that all devices listed in /etc/fstab do mount correctly including removable and networked devices.
I suppose someone will blame it on systemd :^) -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Javier Conti <javier.conti@gmail.com> [12-28-11 20:11]:
On 29 December 2011 00:47, Patrick Shanahan <paka@opensuse.org> wrote:
I *can* mount removable media via pmount utility.
I do and have and am able to manually mount removable and static devices just as I have been able to since ?? 5.0 in SuSE and previous that in Marmaduke. I appreciate the automatic mounting and miss it in 12.1.
Ok. I assumed that you were not able to mount devices from the "Device Notifier" widget as a normal user too.
Your assumption *is* correct. I can *manually* mount and/or via pmount utility, but not via "Device Notifier" widget and it is/was configured to do so.
I now enabled the automounting feature on that widget and can confirm it works fine. I plugged a USB HD and inserted a data CD: both were automounted.
Although I never really digged into that, it seems to me that in the process of mounting (and automounting) removable media systemd is not involved. What I see from a quick glance at the logs is udev and dbus are involved instead.
However, mounting the CD showed that:
udevd[4125]: starting '/lib/systemd/systemd-uaccess /dev/sr0 '
IMHO, that could explain why for Adam CDs and DVDs didn't work, although HDs did. I don't know why they are treated differently
I'd like to know, just for information, if putting the pam_systemd entry helped Adam mounting CDs and DVDs...
I see the same. I cannot mount cd/dvd's automagically, but can *manually* or via pmount. Devices listed in /etc/fstab including nfs and external sata (have not tried usb) mount as expected. -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
Adam Tauno Williams
-
David C. Rankin
-
Javier Conti
-
Patrick Shanahan