Re: systemd-user, daemons, and ssh sessions
Russell Coker <[email protected]> Mon, 27 Jul 2026 02:26:50 +1000
| Newsgroups | gmane.linux.debian.devel.general |
|---|---|
| Message-ID | <48254748.fMDQidcC6G@dojacat> |
On Monday, 27 July 2026 00:16:08 AEST Aaron Rainbolt wrote: > > For ssh it would be good to have options to easily disable user units at a > > default level (maybe in /etc/skel) and also have a good way of disabling > > systemd in pam for a single daemon. Sure you could edit /etc/pam.d/sshd > > to > > not include common-auth and then paste in the bits of common-auth you > > actually want but that's ugly and will risk errors on upgrades. > > I'm not sure what "disabling systemd in pam" means? If you mean that > an SSH login session won't be a "real" login session, that seems like > a distinctly bad idea because it will mess with Polkit's idea of how > the user is logged into the system (which will in turn affect what > Polkit will and won't allow the user to do). I mean have sshd work the way it used to work before systemd pam support was written. If that's not an option then it means there's more reason to have better control of systemd-user units.