From b3b2c984a3538c7e8c4c56f18a65c1a3cd8e1ff7 Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 24 Dec 2004 23:35:24 +0000 Subject: [PATCH] smtp can have uid 0 in addition to root and toor --- FS/FS/svc_acct.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/FS/FS/svc_acct.pm b/FS/FS/svc_acct.pm index 57a175c9d..626c13f92 100644 --- a/FS/FS/svc_acct.pm +++ b/FS/FS/svc_acct.pm @@ -698,9 +698,7 @@ sub check { return "Only root can have uid 0" if $recref->{uid} == 0 - && $recref->{username} ne 'root' - && $recref->{username} ne 'toor'; - + && $recref->{username} !~ /^(root|toor|smtp)$/; $recref->{dir} =~ /^([\/\w\-\.\&]*)$/ or return "Illegal directory: ". $recref->{dir}; -- 2.11.0