summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2004-12-24 23:35:18 +0000
committerivan <ivan>2004-12-24 23:35:18 +0000
commit67aad2a379b6648524e2766e6c0e29534155dea3 (patch)
tree3f0761f593cac6f8bd3a833c6196d8af1d6ab61d /FS
parent1c0aee31ad213c682c8b9443d0deccf3897ea070 (diff)
smtp can have uid 0 in addition to root and toor
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/svc_acct.pm4
1 files changed, 1 insertions, 3 deletions
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};