From owner-freebsd-questions Fri Mar 22 10:54:26 2002 Delivered-To: freebsd-questions@freebsd.org Received: from linuxmail.touchtunes.com (operator.touchtunes.com [216.94.139.201]) by hub.freebsd.org (Postfix) with ESMTP id 6F7CB37B404 for ; Fri, 22 Mar 2002 10:54:16 -0800 (PST) Received: from sunder.touchtunes.com (sunder.touchtunes.com [192.168.0.26]) by linuxmail.touchtunes.com (8.9.3/8.8.7) with ESMTP id NAA02210 for ; Fri, 22 Mar 2002 13:54:29 -0500 Received: (from dinjo@localhost) by sunder.touchtunes.com (8.11.6/8.11.6) id g2MIOsk44316; Fri, 22 Mar 2002 13:24:54 -0500 (EST) (envelope-from dinjo) Date: Fri, 22 Mar 2002 13:24:54 -0500 From: Joel Dinel To: Chris Collins Cc: freebsd-questions@FreeBSD.ORG Subject: Re: adduser problem Message-ID: <20020322132454.A44287@sunder.touchtunes.com> Mail-Followup-To: Joel Dinel , Chris Collins , freebsd-questions@FreeBSD.ORG References: <20020322181130.GB33056@submonkey.net> <20020322131356.V5980-100000@bsduser.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020322131356.V5980-100000@bsduser.ca>; from chris@collins-ca.com on Fri, Mar 22, 2002 at 01:19:29PM -0500 X-Useless-Header: Look ma, it's a # sign! X-Operating-System: FreeBSD 4.5-STABLE i386 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 I had the problem mentionned below a while ago. Deleting adduser.conf and just running 'adduser' without any switches did the trick. On Fri, Mar 22, 2002 at 01:19:29PM -0500, Chris Collins wrote: > Date: Fri, 22 Mar 2002 13:19:29 -0500 (EST) > From: Chris Collins > To: Ceri > Cc: questions@FreeBSD.ORG > Subject: Re: adduser problem > > 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 ---end quoted text--- -- Joel Dinel System Administrator TouchTunes Digital Jukebox, Inc. GnuPG key : http://lysander.mine.nu/~kint/mykey.asc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message