Gentoo Archives: gentoo-user

From: jens w <jw@××××××.eu>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] executing a command as a nologin user
Date: Wed, 13 Jul 2016 10:31:54
Message-Id: 20160713123140.00003175@lxsbbs.eu
In Reply to: Re: [gentoo-user] executing a command as a nologin user by wabe
1 Am Wed, 13 Jul 2016 03:02:50 +0200
2 schrieb wabe <wabenbau@×××××.com>:
3
4 >
5 > Are you sure that the HOME envar is defined for the "nologin-user"?
6
7 # getent passwd user
8 user:x:1018:1018::'/home/user:/sbin/nologin
9 # su -s /bin/bash user -c echo $HOME
10
11
12 I change $HOME in /home/user, but the script not executed.
13
14 > Is there a existing home directory defined in /etc/passwd for this
15 > user?
16
17 yes, and the mail-delivery to /home/user/.maildir ist ok, also the
18 access from roundcube is ok.

Replies

Subject Author
Re: [gentoo-user] executing a command as a nologin user Fernando Rodriguez <cyklonite@×××××.com>