On Mon, Oct 7, 2013 at 10:40 AM, Daniel Spannbauer <[email protected]> wrote:
> Hello,
>
> I've configured a service which should start as a specific user. But the
> service is always started as root.
>
> Here is my service-file:
>
> [Unit]
> Description=Autologin
> After=getty.target
>
> [Service]
> ExecStart=/usr/bin/autologin
> PAMName=login
> Name=daniel

There is no such directive as Service.Name -- if you want to specify
the username, you need Service.User instead:

    [Service]
    User=daniel
    Group=users

See the systemd.exec and systemd.directives manual pages.

-- 
Mantas Mikulėnas <[email protected]>
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to