From 986093cf8d59c20280b4b7b23b654bc77b7d5af4 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Thu, 20 Oct 2011 00:20:02 +0200 Subject: [PATCH] More helpful error message for "aa-notify -p" if a user is not member of the group configured in notify.conf / use_group=... Acked-by: John Johansen --- utils/aa-notify | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/aa-notify b/utils/aa-notify index 361a30a05..a2b52a444 100755 --- a/utils/aa-notify +++ b/utils/aa-notify @@ -151,7 +151,7 @@ if (-s $conf) { if (defined($prefs{use_group})) { my ($name, $passwd, $gid, $members) = getgrnam($prefs{use_group}); if (not defined($members) or not defined($login) or (not grep { $_ eq $login } split(/ /, $members) and $login ne "root")) { - _error("'$login' must be in '$prefs{use_group}' group. Aborting"); + _error("'$login' must be in '$prefs{use_group}' group. Aborting.\nAsk your admin to add you to this group or to change the group in\n$conf if you want to use aa-notify."); } } }