Ivan, I didn't think that linux allowed usernames with a numeric first character. Added this: svc_acct.pm $recref->{username} =~ /^[a-z]{1}.*/ or return "Illegal username"; --Adam