From d8eaaaf47ab444e5e39e3b5cf2278cc675b5abe8 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Mon, 22 Mar 2021 14:27:19 -0700 Subject: [PATCH] switched from su to sudo --- etc/vmail.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/vmail.conf b/etc/vmail.conf index 4591661..838ec0d 100644 --- a/etc/vmail.conf +++ b/etc/vmail.conf @@ -2,7 +2,7 @@ # any script that includes this conf file will force user to be vmail if [ "$USER" != "vmail" ]; then - exec su --shell /bin/bash "vmail" "$0" -- "$@" + exec sudo -u vmail $0 $@ fi # constants