[systemd-bugs] [Bug 89974] New: systemd-ask-password fails in user service
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Apr 10 08:59:44 PDT 2015
https://bugs.freedesktop.org/show_bug.cgi?id=89974
Bug ID: 89974
Summary: systemd-ask-password fails in user service
Product: systemd
Version: unspecified
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: general
Assignee: systemd-bugs at lists.freedesktop.org
Reporter: spoo at zarbosoft.com
QA Contact: systemd-bugs at lists.freedesktop.org
systemd-ask-password fails when used in a user service.
journalctl -xe output:
> Apr 11 00:52:06 localhost systemd[458]: Starting ask password test...
> -- Subject: Unit UNIT has begun with start-up
> -- Defined-By: systemd
> -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
> --
> -- Unit UNIT has begun starting up.
> Apr 11 00:52:06 localhost systemd[458]: Started ask password test.
> -- Subject: Unit UNIT has finished start-up
> -- Defined-By: systemd
> -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
> --
> -- Unit UNIT has finished starting up.
> --
> -- The start-up result is done.
> Apr 11 00:52:06 localhost systemd-ask-password[22495]: Failed to create password file: Permission denied
> Apr 11 00:52:06 localhost systemd[458]: test-ask.service: main process exited, code=exited, status=1/FAILURE
> Apr 11 00:52:06 localhost systemd[458]: Unit test-ask.service entered failed state.
> Apr 11 00:52:06 localhost systemd[458]: test-ask.service failed.
The unit I used to test:
> [Unit]
> Description=ask password test
>
> [Service]
> Type=simple
> ExecStart=/usr/bin/systemd-ask-password hi
I started it with:
> systemctl --user start test-ask.service
Arch Linux, using systemd 218-2.
My use case is I want to manually start up a password-protected daemon but have
the resulting process managed by systemd, potentially pulling in dependencies,
handling logging, etc.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20150410/6ed1d86e/attachment.html>
More information about the systemd-bugs
mailing list