From owner-freebsd-questions Fri Mar 22 10:20:21 2002 Delivered-To: freebsd-questions@freebsd.org Received: from bsduser.ca (CPE00045a630ebf.cpe.net.cable.rogers.com [24.43.18.246]) by hub.freebsd.org (Postfix) with ESMTP id 3F25E37B417 for ; Fri, 22 Mar 2002 10:20:06 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by bsduser.ca (8.11.6/8.11.6) with ESMTP id g2MIJT306396; Fri, 22 Mar 2002 13:19:30 -0500 (EST) (envelope-from chris@collins-ca.com) Date: Fri, 22 Mar 2002 13:19:29 -0500 (EST) From: Chris Collins X-X-Sender: chris@bsduser.ca To: Ceri Cc: questions@freebsd.org Subject: Re: adduser problem In-Reply-To: <20020322181130.GB33056@submonkey.net> Message-ID: <20020322131356.V5980-100000@bsduser.ca> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Well I gave that a shot with no luck. I did not have this problem until I did a cvsup the lastweek. I did one again yesterday to make sure nothing was messed-up. bsduser# adduser -config_create bsduser# adduser Use option ``-silent'' if you don't want to see all warnings and questions. Check /etc/shells Check /etc/master.passwd Check /etc/group Usernames must match regular expression: [^[a-z0-9_][a-z0-9_-]*$]: test Enter your default shell: csh date ftponly no nologin sh tcsh [sh]: Your default shell is: sh -> /bin/sh Enter your default HOME partition: [/home]: Copy dotfiles from: /usr/share/skel no [/usr/share/skel]: Send message from file: /etc/adduser.message no [/etc/adduser.message]: Use passwords (y/n) [y]: Write your changes to /etc/adduser.conf? (y/n) [n]: Ok, let's go. Don't worry about mistakes. I will give you the chance later to correct any input. Enter username [test]: Please enter a username Enter username [test]: test Please enter a username Enter username [test]: pleasework Username doesn't match the regexp /test/ Enter username [test]: On Fri, 22 Mar 2002, Ceri wrote: > On Fri, Mar 22, 2002 at 01:06:18PM -0500, Chris Collins wrote: > > Hello > > > > I seem to be having trouble adding a user with adduser. > > > > It keeps asking me for the username. > > > > Enter username [tst]: test > > Username doesn't match the regexp /tst/ > > > > > Do anybody have any ideas why this is not working. > > Yup. > When you ran adduser it asked you for defaults, and you didn't > read the prompts carefully enough and thought you were adding > the user :) > Then for this question : > > Usernames must match regular expression: > [^[a-z0-9_][a-z0-9_-]*$]: > > you typed "tst". > > Try running: > adduser -config_create > > and setting the defaults again, then go back in and add your user. > > Ceri > > -- > keep a mild groove on > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message