-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 07/13/2016 06:31 AM, jens w wrote: > Am Wed, 13 Jul 2016 03:02:50 +0200 > schrieb wabe <waben...@gmail.com>: > >> >> Are you sure that the HOME envar is defined for the "nologin-user"? > > # getent passwd user > user:x:1018:1018::'/home/user:/sbin/nologin > # su -s /bin/bash user -c echo $HOME > > > I change $HOME in /home/user, but the script not executed. > >> Is there a existing home directory defined in /etc/passwd for this >> user? > > yes, and the mail-delivery to /home/user/.maildir ist ok, also the > access from roundcube is ok. >
Have you tried giving that user a regular shell without changing anything else? and it works? -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXiOo/AAoJEPbOFX/5Ulwcj4oP/RQ5D75FNlJjD3zCcWgvGuT9 M7A34R/YKYszPckOKtQl2+Kc4kzZlO9zXBeFUUSoUZFCSiGZI4RkYpo9zZZXEimW X1+XHcw4noeoqSj0iX9cGX8p8WZFPz8sj7Ui/raaxdEx5rVt8PySz1jvpCtvunS8 ieLZVmLoOkmDQKHMFx/VpdpSkiD+tH/Y4eb8tgNF3jzf8ODv1u2YjER5WpbFKS/m vJCKcChbA6nahvk9RCcOthY8SMgR6/VPQSF6SiXHCgNPBgA8zBW9qDrVywpvYoOu pMF/8U3TdljnrkP3BLrZd0+FyK09992wXSXq3s1Y2cw77FevF3yIuDfefI57t/BS HfYpKSsWEB5ephaabZi93l0Op9doctAYOQXoJz6L6x/F6RB4eYIHMfXo7mHfYXvx bBDrYsgpm0zTK44NQbYsrzBHrfKagOCgKIyKgrfkn4VMMap5Rtwa2FIW3LngHdOO l7BHT0LnMPyT+ieTVkguOcD07THPfWGuONbALHIaTbY10AQyFgvfEY1E6378vETT LjbC0BPfXOisXlt6nhInJ4prpTrAyZlw57lSzuWE41PO4DCEn+PCmz0tISNpZ4Fk ML7X9G+WF2fk4MK9MBEeMbWhQ8A2V2K7+AK4FOM2bI2abCsRktWxAYm9J0Bgu1IM XqDlm1IWPrH5BZvJfIae =sSxt -----END PGP SIGNATURE-----