Allow underscore in account names

Tue, 22 Sep 2009 20:26:20 +0200

author
root@seaport.mbse.ym
date
Tue, 22 Sep 2009 20:26:20 +0200
changeset 13
cc078ac2fddd
parent 12
3179bc45c83c
child 14
59e07bba67cc

Allow underscore in account names

cron.daily/security file | annotate | diff | comparison | revisions
security.d/chk_passwd file | annotate | diff | comparison | revisions
--- a/cron.daily/security	Sat Aug 15 16:01:10 2009 +0200
+++ b/cron.daily/security	Tue Sep 22 20:26:20 2009 +0200
@@ -25,7 +25,7 @@
 # Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
 #############################################################################
 
-VERSION=0.14
+VERSION=0.15
 export PATH=/bin:/usr/bin:/sbin:/usr/sbin
 umask 077
 LANG=C; export LANG
--- a/security.d/chk_passwd	Sat Aug 15 16:01:10 2009 +0200
+++ b/security.d/chk_passwd	Tue Sep 22 20:26:20 2009 +0200
@@ -94,7 +94,7 @@
                 printf "\tLine %d includes entries with uid 0.\n", NR;
             next;
         }
-        if ($1 !~ /^[A-Za-z0-9]([-A-Za-z0-9]*[A-Za-z0-9\$])*$/)
+        if ($1 !~ /^[A-Za-z0-9]([-A-Za-z0-9_]*[A-Za-z0-9\$])*$/)
             printf "\tLogin %s has non-alphanumeric characters.\n", $1;
         if (length($1) > len)
             printf "\tLogin %s has more than "len" characters.\n", $1;

mercurial