From: ivan Date: Fri, 24 Dec 2004 23:35:18 +0000 (+0000) Subject: smtp can have uid 0 in addition to root and toor X-Git-Tag: BEFORE_FINAL_MASONIZE~756 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=67aad2a379b6648524e2766e6c0e29534155dea3 smtp can have uid 0 in addition to root and toor --- diff --git a/FS/FS/svc_acct.pm b/FS/FS/svc_acct.pm index 1e30a0fec..ec0e1d506 100644 --- a/FS/FS/svc_acct.pm +++ b/FS/FS/svc_acct.pm @@ -711,9 +711,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};