[systemd-bugs] [Bug 55163] New: Executing within home directory of the given user

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Sep 20 13:48:39 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=55163

             Bug #: 55163
           Summary: Executing within home directory of the given user
    Classification: Unclassified
           Product: systemd
           Version: unspecified
          Platform: All
        OS/Version: Linux (All)
            Status: NEW
          Severity: enhancement
          Priority: medium
         Component: general
        AssignedTo: systemd-bugs at lists.freedesktop.org
        ReportedBy: rozelak at volny.cz
         QAContact: systemd-bugs at lists.freedesktop.org


When setting User= option, the process is still started in / directory. This
makes the configuration of daemons started under a non-root user (e,g,
cruisecontrol) much harder, since relative paths cannot be used.

Although there a possibility to use WorkingDirectory= option to specify the
home directory of the user (or to specify full absolute path in the config), it
is not very convenient way - the home dir must be changed in several places, or
the configuration may start to be difficult to read.

There are basically two possibilities of handling it:

1.
use home directory by default (instead of / currently used), if User= is set

2.
support, e.g. WorkingDirectory=~ special alias, which will be resolved by
systemd and replaced by the home directory of the user set


Thank you for considering this
DT.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the systemd-bugs mailing list