<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-dev] ANN: For the brave. systemd v185 in cauldron	updates_testing
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20ANN%3A%20For%20the%20brave.%20systemd%20v185%20in%20cauldron%0A%09updates_testing&In-Reply-To=%3C4FE83CC7.30603%40colin.guthr.ie%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="016811.html">
   <LINK REL="Next"  HREF="016828.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-dev] ANN: For the brave. systemd v185 in cauldron	updates_testing</H1>
    <B>Colin Guthrie</B> 
    <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20ANN%3A%20For%20the%20brave.%20systemd%20v185%20in%20cauldron%0A%09updates_testing&In-Reply-To=%3C4FE83CC7.30603%40colin.guthr.ie%3E"
       TITLE="[Mageia-dev] ANN: For the brave. systemd v185 in cauldron	updates_testing">mageia at colin.guthr.ie
       </A><BR>
    <I>Mon Jun 25 12:26:15 CEST 2012</I>
    <P><UL>
        <LI>Previous message: <A HREF="016811.html">[Mageia-dev] ANN: For the brave. systemd v185 in cauldron	updates_testing
</A></li>
        <LI>Next message: <A HREF="016828.html">[Mageia-dev] ANN: For the brave. systemd v185 in cauldron	updates_testing
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#16814">[ date ]</a>
              <a href="thread.html#16814">[ thread ]</a>
              <a href="subject.html#16814">[ subject ]</a>
              <a href="author.html#16814">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>'Twas brillig, and Thierry Vignaud at 25/06/12 11:04 did gyre and gimble:
&gt;<i> On 25 June 2012 11:10, Colin Guthrie &lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">mageia at colin.guthr.ie</A>&gt; wrote:
</I>&gt;&gt;&gt;&gt;&gt;&gt;<i> Anything special in your gdm pam configs? Or even in the system-auth pam
</I>&gt;&gt;&gt;&gt;&gt;&gt;<i> file?
</I>&gt;&gt;&gt;&gt;&gt;<i> Yes, I'm using pam_mount to automatically mount my encrypted home
</I>&gt;&gt;&gt;&gt;&gt;<i> directory. But given that it is handled in system-auth, and that other
</I>&gt;&gt;&gt;&gt;&gt;<i> kind of login works, I'm sceptic.
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> Well I'm somewhat sceptical too, but I'd still like to work out why it
</I>&gt;&gt;&gt;&gt;<i> fails for you.
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> I would imagine it works for TV tho' I don't know for certain if the two
</I>&gt;&gt;&gt;&gt;<i> machines he referred to run a DE or not.
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> One does, one doesn't.
</I>&gt;&gt;&gt;<i> On the one that does, btw, one must provide the root password in order
</I>&gt;&gt;&gt;<i> to mount a USB key if &quot;su - foobar&quot; is run in a terminal...
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> Does the one running a DM let you login OK via gdm?
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> So USB keys mount OK after a fresh boot, but as soon as you do &quot;su -
</I>&gt;&gt;<i> foobar&quot; mounting is broken? Or have I misunderstood the problem?
</I>&gt;<i> 
</I>&gt;<i> The computer is logged by my gf, but I &quot;su - my_account&quot; in a terminal
</I>&gt;<i> with screen then running some root sessions too in order to work on my
</I>&gt;<i> stuff.
</I>&gt;<i> 
</I>&gt;<i> In that case, plugging a USB partitionned disk now results in having to type in
</I>&gt;<i> the root password due to other users being logged.
</I>&gt;<i> 
</I>&gt;<i> Of course, it's not a generic issue... It'll probably annoy only me.
</I>
Ahh right, I think I understand the setup. It likely comes down to
whether or not both sessions are active or not or is perhaps related to
the fact that both sessions are active at the same time and are on the
same seat.

Either way this is likely something that can be fixed eventually with
appropriate udisk/policykit or whatever updates/integration (I'd suggest
that your session in the background should be &quot;inactive&quot; (see loginctl
session-status N)

What is interesting is that if I try to emulate here, I don't get any
other sessions listed in loginctl.... This is at least partly deliberate
as I didn't want to change the pam.d/su or pam.d/su-l (or the sudo ones)
files for Mga2 to include pam_systemd.so due to there being a few quirks
relating to session management. That said, the pam.d/su file should
include system-auth so I guess I would expect to see a session listed
but IIRC the code will actually skip starting a new session if one
already exists, so not 100% surprising.

Really should update how the pam stuff fits together at some point.

Col



-- 

Colin Guthrie
colin(at)mageia.org
<A HREF="http://colin.guthr.ie/">http://colin.guthr.ie/</A>

Day Job:
  Tribalogic Limited <A HREF="http://www.tribalogic.net/">http://www.tribalogic.net/</A>
Open Source:
  Mageia Contributor <A HREF="http://www.mageia.org/">http://www.mageia.org/</A>
  PulseAudio Hacker <A HREF="http://www.pulseaudio.org/">http://www.pulseaudio.org/</A>
  Trac Hacker <A HREF="http://trac.edgewall.org/">http://trac.edgewall.org/</A>


</PRE>


<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="016811.html">[Mageia-dev] ANN: For the brave. systemd v185 in cauldron	updates_testing
</A></li>
	<LI>Next message: <A HREF="016828.html">[Mageia-dev] ANN: For the brave. systemd v185 in cauldron	updates_testing
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#16814">[ date ]</a>
              <a href="thread.html#16814">[ thread ]</a>
              <a href="subject.html#16814">[ subject ]</a>
              <a href="author.html#16814">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
mailing list</a><br>
</body></html>