diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-06-12 19:11:58 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-06-12 19:11:58 +0000 |
commit | 80b00b8004cadf740557a1f34341c3621c4d862f (patch) | |
tree | 96d481c9bf85fcb10dcacd397d26fefed96ebffe | |
parent | 255dcc65aba1545896c092f0feb48ffad0f12ca7 (diff) |
Don't complain about usernames that end in '$' which may be needed by
samba; this is consistent with useradd and adduser. From Dan Brosemer.
-rw-r--r-- | etc/security | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/security b/etc/security index 5f24b304a27..9b6f63c2b1f 100644 --- a/etc/security +++ b/etc/security @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: security,v 1.56 2003/04/08 20:42:42 millert Exp $ +# $OpenBSD: security,v 1.57 2003/06/12 19:11:57 millert Exp $ # from: @(#)security 8.1 (Berkeley) 6/9/93 # @@ -31,7 +31,7 @@ awk -F: '{ next; if ($1 == "") printf("Line %d has an empty login field:\n%s\n", NR, $0); - else if ($1 !~ /^[A-Za-z0-9_][A-Za-z0-9_-]*$/) + else if ($1 !~ /^[A-Za-z0-9_][A-Za-z0-9_-]*\$?$/) printf("Login %s has non-alphanumeric characters.\n", $1); if (length($1) > 31) printf("Login %s has more than 31 characters.\n", $1); |