Bug#1056166: fixed in systemd 256~rc3-3

2024-05-28 Thread Luca Boccassi
On Tue, 28 May 2024 at 14:45, Luca Boccassi  wrote:
>
> On Tue, 28 May 2024 at 14:19, Luca Boccassi  wrote:
> >
> > On Tue, 28 May 2024 at 14:18, Anthony Bourguignon  
> > wrote:
> > >
> > > Le mardi 28 mai 2024 à 14:06 +0100, Luca Boccassi a écrit :
> > > > On Tue, 28 May 2024 at 14:05, Anthony Bourguignon 
> > > >  wrote:
> > > > >
> > > > > Le mardi 28 mai 2024 à 12:38 +0100, Luca Boccassi a écrit :
> > > > > > On Tue, 28 May 2024 13:09:53 +0200 Anthony Bourguignon
> > > > > >  wrote:
> > > > > > > Hi,
> > > > > > >
> > > > > > > Since 256~rc3-3, I can’t login anymore with my homed user. How it
> > > > > > > happened : I logged in with GDM to
> > > > > > > my Gnome session. I made the updates, including the systemd-homed
> > > > > > > version 256~rc3-3. When I locked
> > > > > > > my screen, I was unable to unlock it. The password was refused. 
> > > > > > > So I
> > > > > > > restarted the computer and I
> > > > > > > was unable to log back onto it.
> > > > > > >
> > > > > > > I tried with Gnome, ssh, su (as root), nothing worked.
> > > > > > >
> > > > > > > I think your modifications completely broke systemd-homed
> > > > > > > authentification. The system didn’t
> > > > > > > recognize the user at all :
> > > > > > > 2024-05-28T11:42:29.266019+02:00 **redacted** unix_chkpwd[2223]:
> > > > > > > check pass; user unknown
> > > > > > > 2024-05-28T11:44:17.113169+02:00 **redacted** unix_chkpwd[2351]:
> > > > > > > could not obtain user info
> > > > > > > (**redacted**)
> > > > > > >
> > > > > > > I rsynced the /etc/pam.d/common* files from another computer, 
> > > > > > > deleted
> > > > > > > the systemd-homed file in the
> > > > > > > same directory, and everything is back to normal.
> > > > > >
> > > > > > uff I tested it from a TTY rather than GNOME and it worked. Does it
> > > > > > work from the console for you?
> > > > > >
> > > > >
> > > > > I’ve tried with another PC. From the console, I can log in but the 
> > > > > session closes directly. If,
> > > > > from
> > > > > root, I try "su - username", I’ve got the message : "called without 
> > > > > reference on home taken,
> > > > > can’t
> > > > > operate" and the session doesn’t open.
> > > > >
> > > > > If I try to log in Gnome from GDM, it works, but it seems the home 
> > > > > directory is not uncrypted
> > > > > and
> > > > > mounted. So my session is clear and I can’t launch any app.
> > > > >
> > > > > But I don’t understand why I don’t have the same behavior as the 
> > > > > other PC.
> > > >
> > > > Ok, activation of the homed entry was borked then - what's the
> > > > situation in your /etc/pam.d? Do you still have systemd_home
> > > > references outside of its own config module?
> > >
> > > The only references to systemd_home are in /etc/pam.d/systemd-homed . 
> > > Nothing in the common* files.
> >
> > Ok - I'll try to reproduce later tonight
>
> In the meanwhile, if you are feeling adventurous and want to mess with
> the pam config, if you find a way to make it happy let me know

256~rc3-5 should fix it - turns out standalone modules cannot work in
Debian, so it's back to pam-auth-update + monkey patching



Bug#1056166: fixed in systemd 256~rc3-3

2024-05-28 Thread Luca Boccassi
On Tue, 28 May 2024 at 14:19, Luca Boccassi  wrote:
>
> On Tue, 28 May 2024 at 14:18, Anthony Bourguignon  
> wrote:
> >
> > Le mardi 28 mai 2024 à 14:06 +0100, Luca Boccassi a écrit :
> > > On Tue, 28 May 2024 at 14:05, Anthony Bourguignon  
> > > wrote:
> > > >
> > > > Le mardi 28 mai 2024 à 12:38 +0100, Luca Boccassi a écrit :
> > > > > On Tue, 28 May 2024 13:09:53 +0200 Anthony Bourguignon
> > > > >  wrote:
> > > > > > Hi,
> > > > > >
> > > > > > Since 256~rc3-3, I can’t login anymore with my homed user. How it
> > > > > > happened : I logged in with GDM to
> > > > > > my Gnome session. I made the updates, including the systemd-homed
> > > > > > version 256~rc3-3. When I locked
> > > > > > my screen, I was unable to unlock it. The password was refused. So I
> > > > > > restarted the computer and I
> > > > > > was unable to log back onto it.
> > > > > >
> > > > > > I tried with Gnome, ssh, su (as root), nothing worked.
> > > > > >
> > > > > > I think your modifications completely broke systemd-homed
> > > > > > authentification. The system didn’t
> > > > > > recognize the user at all :
> > > > > > 2024-05-28T11:42:29.266019+02:00 **redacted** unix_chkpwd[2223]:
> > > > > > check pass; user unknown
> > > > > > 2024-05-28T11:44:17.113169+02:00 **redacted** unix_chkpwd[2351]:
> > > > > > could not obtain user info
> > > > > > (**redacted**)
> > > > > >
> > > > > > I rsynced the /etc/pam.d/common* files from another computer, 
> > > > > > deleted
> > > > > > the systemd-homed file in the
> > > > > > same directory, and everything is back to normal.
> > > > >
> > > > > uff I tested it from a TTY rather than GNOME and it worked. Does it
> > > > > work from the console for you?
> > > > >
> > > >
> > > > I’ve tried with another PC. From the console, I can log in but the 
> > > > session closes directly. If,
> > > > from
> > > > root, I try "su - username", I’ve got the message : "called without 
> > > > reference on home taken,
> > > > can’t
> > > > operate" and the session doesn’t open.
> > > >
> > > > If I try to log in Gnome from GDM, it works, but it seems the home 
> > > > directory is not uncrypted
> > > > and
> > > > mounted. So my session is clear and I can’t launch any app.
> > > >
> > > > But I don’t understand why I don’t have the same behavior as the other 
> > > > PC.
> > >
> > > Ok, activation of the homed entry was borked then - what's the
> > > situation in your /etc/pam.d? Do you still have systemd_home
> > > references outside of its own config module?
> >
> > The only references to systemd_home are in /etc/pam.d/systemd-homed . 
> > Nothing in the common* files.
>
> Ok - I'll try to reproduce later tonight

In the meanwhile, if you are feeling adventurous and want to mess with
the pam config, if you find a way to make it happy let me know



Bug#1056166: fixed in systemd 256~rc3-3

2024-05-28 Thread Anthony Bourguignon
Le mardi 28 mai 2024 à 14:06 +0100, Luca Boccassi a écrit :
> On Tue, 28 May 2024 at 14:05, Anthony Bourguignon  
> wrote:
> > 
> > Le mardi 28 mai 2024 à 12:38 +0100, Luca Boccassi a écrit :
> > > On Tue, 28 May 2024 13:09:53 +0200 Anthony Bourguignon
> > >  wrote:
> > > > Hi,
> > > > 
> > > > Since 256~rc3-3, I can’t login anymore with my homed user. How it
> > > > happened : I logged in with GDM to
> > > > my Gnome session. I made the updates, including the systemd-homed
> > > > version 256~rc3-3. When I locked
> > > > my screen, I was unable to unlock it. The password was refused. So I
> > > > restarted the computer and I
> > > > was unable to log back onto it.
> > > > 
> > > > I tried with Gnome, ssh, su (as root), nothing worked.
> > > > 
> > > > I think your modifications completely broke systemd-homed
> > > > authentification. The system didn’t
> > > > recognize the user at all :
> > > > 2024-05-28T11:42:29.266019+02:00 **redacted** unix_chkpwd[2223]:
> > > > check pass; user unknown
> > > > 2024-05-28T11:44:17.113169+02:00 **redacted** unix_chkpwd[2351]:
> > > > could not obtain user info
> > > > (**redacted**)
> > > > 
> > > > I rsynced the /etc/pam.d/common* files from another computer, deleted
> > > > the systemd-homed file in the
> > > > same directory, and everything is back to normal.
> > > 
> > > uff I tested it from a TTY rather than GNOME and it worked. Does it
> > > work from the console for you?
> > > 
> > 
> > I’ve tried with another PC. From the console, I can log in but the session 
> > closes directly. If,
> > from
> > root, I try "su - username", I’ve got the message : "called without 
> > reference on home taken,
> > can’t
> > operate" and the session doesn’t open.
> > 
> > If I try to log in Gnome from GDM, it works, but it seems the home 
> > directory is not uncrypted
> > and
> > mounted. So my session is clear and I can’t launch any app.
> > 
> > But I don’t understand why I don’t have the same behavior as the other PC.
> 
> Ok, activation of the homed entry was borked then - what's the
> situation in your /etc/pam.d? Do you still have systemd_home
> references outside of its own config module?

The only references to systemd_home are in /etc/pam.d/systemd-homed . Nothing 
in the common* files.



Bug#1056166: fixed in systemd 256~rc3-3

2024-05-28 Thread Luca Boccassi
On Tue, 28 May 2024 at 14:18, Anthony Bourguignon  wrote:
>
> Le mardi 28 mai 2024 à 14:06 +0100, Luca Boccassi a écrit :
> > On Tue, 28 May 2024 at 14:05, Anthony Bourguignon  
> > wrote:
> > >
> > > Le mardi 28 mai 2024 à 12:38 +0100, Luca Boccassi a écrit :
> > > > On Tue, 28 May 2024 13:09:53 +0200 Anthony Bourguignon
> > > >  wrote:
> > > > > Hi,
> > > > >
> > > > > Since 256~rc3-3, I can’t login anymore with my homed user. How it
> > > > > happened : I logged in with GDM to
> > > > > my Gnome session. I made the updates, including the systemd-homed
> > > > > version 256~rc3-3. When I locked
> > > > > my screen, I was unable to unlock it. The password was refused. So I
> > > > > restarted the computer and I
> > > > > was unable to log back onto it.
> > > > >
> > > > > I tried with Gnome, ssh, su (as root), nothing worked.
> > > > >
> > > > > I think your modifications completely broke systemd-homed
> > > > > authentification. The system didn’t
> > > > > recognize the user at all :
> > > > > 2024-05-28T11:42:29.266019+02:00 **redacted** unix_chkpwd[2223]:
> > > > > check pass; user unknown
> > > > > 2024-05-28T11:44:17.113169+02:00 **redacted** unix_chkpwd[2351]:
> > > > > could not obtain user info
> > > > > (**redacted**)
> > > > >
> > > > > I rsynced the /etc/pam.d/common* files from another computer, deleted
> > > > > the systemd-homed file in the
> > > > > same directory, and everything is back to normal.
> > > >
> > > > uff I tested it from a TTY rather than GNOME and it worked. Does it
> > > > work from the console for you?
> > > >
> > >
> > > I’ve tried with another PC. From the console, I can log in but the 
> > > session closes directly. If,
> > > from
> > > root, I try "su - username", I’ve got the message : "called without 
> > > reference on home taken,
> > > can’t
> > > operate" and the session doesn’t open.
> > >
> > > If I try to log in Gnome from GDM, it works, but it seems the home 
> > > directory is not uncrypted
> > > and
> > > mounted. So my session is clear and I can’t launch any app.
> > >
> > > But I don’t understand why I don’t have the same behavior as the other PC.
> >
> > Ok, activation of the homed entry was borked then - what's the
> > situation in your /etc/pam.d? Do you still have systemd_home
> > references outside of its own config module?
>
> The only references to systemd_home are in /etc/pam.d/systemd-homed . Nothing 
> in the common* files.

Ok - I'll try to reproduce later tonight



Bug#1056166: fixed in systemd 256~rc3-3

2024-05-28 Thread Luca Boccassi
On Tue, 28 May 2024 at 14:05, Anthony Bourguignon  wrote:
>
> Le mardi 28 mai 2024 à 12:38 +0100, Luca Boccassi a écrit :
> > On Tue, 28 May 2024 13:09:53 +0200 Anthony Bourguignon
> >  wrote:
> > > Hi,
> > >
> > > Since 256~rc3-3, I can’t login anymore with my homed user. How it
> > > happened : I logged in with GDM to
> > > my Gnome session. I made the updates, including the systemd-homed
> > > version 256~rc3-3. When I locked
> > > my screen, I was unable to unlock it. The password was refused. So I
> > > restarted the computer and I
> > > was unable to log back onto it.
> > >
> > > I tried with Gnome, ssh, su (as root), nothing worked.
> > >
> > > I think your modifications completely broke systemd-homed
> > > authentification. The system didn’t
> > > recognize the user at all :
> > > 2024-05-28T11:42:29.266019+02:00 **redacted** unix_chkpwd[2223]:
> > > check pass; user unknown
> > > 2024-05-28T11:44:17.113169+02:00 **redacted** unix_chkpwd[2351]:
> > > could not obtain user info
> > > (**redacted**)
> > >
> > > I rsynced the /etc/pam.d/common* files from another computer, deleted
> > > the systemd-homed file in the
> > > same directory, and everything is back to normal.
> >
> > uff I tested it from a TTY rather than GNOME and it worked. Does it
> > work from the console for you?
> >
>
> I’ve tried with another PC. From the console, I can log in but the session 
> closes directly. If, from
> root, I try "su - username", I’ve got the message : "called without reference 
> on home taken, can’t
> operate" and the session doesn’t open.
>
> If I try to log in Gnome from GDM, it works, but it seems the home directory 
> is not uncrypted and
> mounted. So my session is clear and I can’t launch any app.
>
> But I don’t understand why I don’t have the same behavior as the other PC.

Ok, activation of the homed entry was borked then - what's the
situation in your /etc/pam.d? Do you still have systemd_home
references outside of its own config module?



Bug#1056166: fixed in systemd 256~rc3-3

2024-05-28 Thread Anthony Bourguignon
Le mardi 28 mai 2024 à 12:38 +0100, Luca Boccassi a écrit :
> On Tue, 28 May 2024 13:09:53 +0200 Anthony Bourguignon
>  wrote:
> > Hi,
> > 
> > Since 256~rc3-3, I can’t login anymore with my homed user. How it
> > happened : I logged in with GDM to
> > my Gnome session. I made the updates, including the systemd-homed
> > version 256~rc3-3. When I locked
> > my screen, I was unable to unlock it. The password was refused. So I
> > restarted the computer and I
> > was unable to log back onto it.
> > 
> > I tried with Gnome, ssh, su (as root), nothing worked.
> > 
> > I think your modifications completely broke systemd-homed
> > authentification. The system didn’t
> > recognize the user at all :
> > 2024-05-28T11:42:29.266019+02:00 **redacted** unix_chkpwd[2223]:
> > check pass; user unknown
> > 2024-05-28T11:44:17.113169+02:00 **redacted** unix_chkpwd[2351]:
> > could not obtain user info
> > (**redacted**)
> > 
> > I rsynced the /etc/pam.d/common* files from another computer, deleted
> > the systemd-homed file in the
> > same directory, and everything is back to normal.
> 
> uff I tested it from a TTY rather than GNOME and it worked. Does it
> work from the console for you?
> 

I’ve tried with another PC. From the console, I can log in but the session 
closes directly. If, from
root, I try "su - username", I’ve got the message : "called without reference 
on home taken, can’t
operate" and the session doesn’t open.

If I try to log in Gnome from GDM, it works, but it seems the home directory is 
not uncrypted and
mounted. So my session is clear and I can’t launch any app.

But I don’t understand why I don’t have the same behavior as the other PC.



Bug#1056166: fixed in systemd 256~rc3-3

2024-05-28 Thread Luca Boccassi
On Tue, 28 May 2024 13:09:53 +0200 Anthony Bourguignon
 wrote:
> Hi,
> 
> Since 256~rc3-3, I can’t login anymore with my homed user. How it
> happened : I logged in with GDM to
> my Gnome session. I made the updates, including the systemd-homed
> version 256~rc3-3. When I locked
> my screen, I was unable to unlock it. The password was refused. So I
> restarted the computer and I
> was unable to log back onto it.
> 
> I tried with Gnome, ssh, su (as root), nothing worked.
> 
> I think your modifications completely broke systemd-homed
> authentification. The system didn’t
> recognize the user at all :
> 2024-05-28T11:42:29.266019+02:00 **redacted** unix_chkpwd[2223]:
> check pass; user unknown
> 2024-05-28T11:44:17.113169+02:00 **redacted** unix_chkpwd[2351]:
> could not obtain user info
> (**redacted**)
> 
> I rsynced the /etc/pam.d/common* files from another computer, deleted
> the systemd-homed file in the
> same directory, and everything is back to normal.

uff I tested it from a TTY rather than GNOME and it worked. Does it
work from the console for you?

-- 
Kind regards,
Luca Boccassi


signature.asc
Description: This is a digitally signed message part


Bug#1056166: fixed in systemd 256~rc3-3

2024-05-28 Thread Anthony Bourguignon
On Mon, 27 May 2024 23:50:02 + Debian FTP Masters 
 wrote:
> Source: systemd
> Source-Version: 256~rc3-3
> Done: Luca Boccassi 
> 
> We believe that the bug you reported is fixed in the latest version of
> systemd, which is due to be installed in the Debian FTP archive.
> 
> A summary of the changes between this version and the previous one is
> attached.
> 
> Thank you for reporting the bug, which will now be closed.  If you
> have further comments please address them to 1056...@bugs.debian.org,
> and the maintainer will reopen the bug report if appropriate.
> 
> Debian distribution maintenance software
> pp.
> Luca Boccassi  (supplier of updated systemd package)
> 
> (This message was generated automatically at their request; if you
> believe that there is a problem with it please contact the archive
> administrators by mailing ftpmas...@ftp-master.debian.org)
> 
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA512
> 
> Format: 1.8
> Date: Tue, 28 May 2024 00:07:57 +0100
> Source: systemd
> Architecture: source
> Version: 256~rc3-3
> Distribution: unstable
> Urgency: medium
> Maintainer: Debian systemd Maintainers 
> 
> Changed-By: Luca Boccassi 
> Closes: 825438 851314 913061 966621 1029152 1056166 1056564
> Changes:
>  systemd (256~rc3-3) unstable; urgency=medium
>  .
>    [ Zbigniew Jędrzejewski-Szmek ]
>    * tests/boot-and-services: don't wait for systemd-tmpfiles-clean.service
>  to finish. It's a oneshot service, so the 'start' call above is
>  effectively synchronous.
>    * test/boot-and-services: use pidof instead of ps -C
>  .
>    [ Chris Hofstaedtler ]
>    * autopkgtest: install open-iscsi and tgt for upstream suite
>  .
>    [ Gioele Barabucci ]
>    * d/libnss-mymachines.nss: Install before `resolve` and `dns`. Installing
>  `mymachines` before `dns` and `resolve` (whatever comes first) is
>  suggested in the manpage. It also avoids leaking information about
>  local machines to the DNS resolver. (Closes: #825438, #851314)
>    * d/libnss-myhostname.nss: Install after `files`
>  .
>    [ Luca Boccassi ]
>    * Drop /bin/systemd legacy symlink. The systemd binary should not be in
>  the default PATH. This symlink was created due to some old
>  documentation (long since corrected) suggesting to use
>  init=/bin/systemd to test switching to systemd. (Closes: #913061)

Hi,

Since 256~rc3-3, I can’t login anymore with my homed user. How it happened : I 
logged in with GDM to
my Gnome session. I made the updates, including the systemd-homed version 
256~rc3-3. When I locked
my screen, I was unable to unlock it. The password was refused. So I restarted 
the computer and I
was unable to log back onto it.

I tried with Gnome, ssh, su (as root), nothing worked.

I think your modifications completely broke systemd-homed authentification. The 
system didn’t
recognize the user at all :
2024-05-28T11:42:29.266019+02:00 **redacted** unix_chkpwd[2223]: check pass; 
user unknown
2024-05-28T11:44:17.113169+02:00 **redacted** unix_chkpwd[2351]: could not 
obtain user info
(**redacted**)

I rsynced the /etc/pam.d/common* files from another computer, deleted the 
systemd-homed file in the
same directory, and everything is back to normal.

Thanks