GNU bug report logs - #27620
systemd environment SSH_AUTH_SOCK in emacs.service

Previous Next

Package: emacs;

Reported by: Alex Branham <alex.branham <at> gmail.com>

Date: Sat, 8 Jul 2017 15:45:02 UTC

Severity: minor

Tags: fixed

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Alex Branham <alex.branham <at> gmail.com>
To: 27620 <at> debbugs.gnu.org
Subject: bug#27620: systemd environment SSH_AUTH_SOCK in emacs.service
Date: Sat, 08 Jul 2017 17:44:05 +0200
Hello -

The systemd service file "etc/emacs.service" sets the environmental variable SSH_AUTH_SOCK to "%t/keyring/ssh", which won't work for all users. I think that's a GNOME-specific thing, maybe?

In any case, it overwrites values of SSH_AUTH_SOCK that the user actually sets (in ~/.pam_environment, for example).

Would it be possible to remove that Environment line from the emacs.service file? Instead of guessing at what the value should be, maybe consider adding in the release notes or in the manual (if the systemd service has a section in the manual) that users can set the value of SSH_AUTH_SOCK by either 1) setting it session-wide in ~/.pam_environment, or 2) editing the emacs service file with "systemctl --user edit emacs.service" and adding something like below (replacing "%t/keyring/ssh" with the appropriate value):

[Service]
Environment="SSH_AUTH_SOCK=%t/keyring/ssh"

Thanks,
Alex




This bug report was last modified 5 years and 310 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.