summaryrefslogtreecommitdiff
path: root/usr.sbin/adduser
diff options
context:
space:
mode:
authorChris Cappuccio <chris@cvs.openbsd.org>2001-01-31 21:12:59 +0000
committerChris Cappuccio <chris@cvs.openbsd.org>2001-01-31 21:12:59 +0000
commit17e3333b9af1d805e654bd45ed6982c3be37ea64 (patch)
tree283140967252033a4f18c572d4e38dbb3bcb3b89 /usr.sbin/adduser
parentedc866ece118a56812aed8db7f39b38a37e9dff2 (diff)
32 character user names
Diffstat (limited to 'usr.sbin/adduser')
-rw-r--r--usr.sbin/adduser/adduser.84
-rw-r--r--usr.sbin/adduser/adduser.perl8
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/adduser/adduser.8 b/usr.sbin/adduser/adduser.8
index bed97742f4a..38dded701c2 100644
--- a/usr.sbin/adduser/adduser.8
+++ b/usr.sbin/adduser/adduser.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: adduser.8,v 1.19 2000/11/08 19:37:33 aaron Exp $
+.\" $OpenBSD: adduser.8,v 1.20 2001/01/31 21:12:58 chris Exp $
.\"
.\" Copyright (c) 1995-1996 Wolfram Schneider <wosch@FreeBSD.org>. Berlin.
.\" All rights reserved.
@@ -209,7 +209,7 @@ politely refuses to remove users whose UID is 0 (typically root).
.Bl -tag -width Ds
.It Sy username
Login names should contain only lowercase characters or digits.
-They should be no longer than 8 characters (see BUGS section of
+They should be no longer than 32 characters (see BUGS section of
.Xr setlogin 2 ) .
.\" The reasons for this limit are "Historical".
.\" Given that people have traditionally wanted to break this
diff --git a/usr.sbin/adduser/adduser.perl b/usr.sbin/adduser/adduser.perl
index b800c63f94b..65234401254 100644
--- a/usr.sbin/adduser/adduser.perl
+++ b/usr.sbin/adduser/adduser.perl
@@ -1,6 +1,6 @@
#!/usr/bin/perl
#
-# $OpenBSD: adduser.perl,v 1.27 2000/12/30 06:43:24 angelos Exp $
+# $OpenBSD: adduser.perl,v 1.28 2001/01/31 21:12:58 chris Exp $
#
# Copyright (c) 1995-1996 Wolfram Schneider <wosch@FreeBSD.org>. Berlin.
# All rights reserved.
@@ -89,7 +89,7 @@ sub variables {
$group = "/etc/group";
$pwd_mkdb = "pwd_mkdb -p"; # program for building passwd database
$encryptionmethod = "blowfish";
- $rcsid = '$OpenBSD: adduser.perl,v 1.27 2000/12/30 06:43:24 angelos Exp $';
+ $rcsid = '$OpenBSD: adduser.perl,v 1.28 2001/01/31 21:12:58 chris Exp $';
# List of directories where shells located
@path = ('/bin', '/usr/bin', '/usr/local/bin');
@@ -366,8 +366,8 @@ sub new_users_name {
while(1) {
$name = &confirm_list("Enter username", 1, "a-z0-9_-", "");
- if (length($name) > 8) {
- warn "Username is longer than 8 chars\a\n";
+ if (length($name) > 32) {
+ warn "Username is longer than 32 characters\a\n";
next;
}
last if (&new_users_name_valid($name) eq $name);