Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Mar 2002 13:24:54 -0500
From:      Joel Dinel <dinjo@touchtunes.com>
To:        Chris Collins <chris@collins-ca.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: adduser problem
Message-ID:  <20020322132454.A44287@sunder.touchtunes.com>
In-Reply-To: <20020322131356.V5980-100000@bsduser.ca>; from chris@collins-ca.com on Fri, Mar 22, 2002 at 01:19:29PM -0500
References:  <20020322181130.GB33056@submonkey.net> <20020322131356.V5980-100000@bsduser.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <chris@collins-ca.com>
> To: Ceri <setantae@submonkey.net>
> 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/
> >
> > <snip>
> >
> > > 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020322132454.A44287>