Problem adding user (4.8R)

2003-07-03 Thread Johan Paul
Hi,

I just installed FreeBSD 4.8 and tried to add a user to the system using 
'adduser foo'.

I get a few questions and then this:

-- 8 --
Don't worry about mistakes. I will give you the chance later to correct 
any input.
Enter username [foo]:
Please enter a username
Enter username [foo]: foo
Please enter a username
Enter username [foo]:
-- 8 --

...whatever I type in as username, the system rejects it.

I can add users via sysinstall. But this bothers me... what could be wrong?

Regards,

Johan Paul

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problem adding user (4.8R)

2003-07-03 Thread Kevin Kinsey, DaleCo, S.P.
From: Johan Paul [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 03, 2003 1:41 PM
Subject: Problem adding user (4.8R)


 Hi,
 
 I just installed FreeBSD 4.8 and tried to add 
 a user to the system using 'adduser foo'.
 
 I get a few questions and then this:
 
 -- 8 --
 Don't worry about mistakes. I will give 
 you the chance later to correct any input.
 Enter username [foo]:
 Please enter a username
 Enter username [foo]: foo
 Please enter a username
 Enter username [foo]:
 -- 8 --
 
 ...whatever I type in as username, the system rejects it.
 

Does 'foo' match the regexp that you entered
or already had setup when you were 'answering
a few questions?'

Kevin Kinsey
DaleCo, S.P.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problem adding user (4.8R)

2003-07-03 Thread Bill Moran
Johan Paul wrote:
Hi,

I just installed FreeBSD 4.8 and tried to add a user to the system using 
'adduser foo'.

I get a few questions and then this:

-- 8 --
Don't worry about mistakes. I will give you the chance later to correct 
any input.
Enter username [foo]:
Please enter a username
Enter username [foo]: foo
Please enter a username
Enter username [foo]:
-- 8 --

...whatever I type in as username, the system rejects it.

I can add users via sysinstall. But this bothers me... what could be wrong?
I'm guessing that during the startup portion of adduser, you entered foo as
the username regex.  This isn't where you enter a username, but where you
enter a pattern that limits the possible usernames.
Deleting /etc/adduser.conf will get you back to the shipped defaults.
--
Bill Moran
Potential Technologies
http://www.potentialtech.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problem adding user (4.8R)

2003-07-03 Thread Johan Paul
 I get a few questions and then this:

 -- 8 --
 Don't worry about mistakes. I will give you the chance later to 
correct any input.
 Enter username [foo]:
 Please enter a username
 Enter username [foo]: foo
 Please enter a username
 Enter username [foo]:
 -- 8 --

 ...whatever I type in as username, the system rejects it.

 Does 'foo' match the regexp that you entered
 or already had setup when you were 'answering
 a few questions?'
Well, I think so This is what I did:

-- 8 --
silakka# adduser mats
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: [kypeli]: mats
Enter your default shell: bash csh date no sh tcsh [bash]:
Your default shell is: bash - /usr/local/bin/bash
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 [mats]:
Please enter a username
Enter username [mats]:
Please enter a username
Enter username [mats]: mats
Please enter a username
Enter username [mats]:
-- 8 --

Did I do something wrong?


 Kevin Kinsey
 DaleCo, S.P.
Best regards,

Johan Paul



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problem adding user (4.8R)

2003-07-03 Thread Johan Paul
Stefan Prestele wrote:

I think the problem is, that you have entered a user name when you were
asked for a regex for user names. So restart adduser and read the
questions properly. The question for a regular expression that user
names have to match should be 'a-z0-9_-ยด (whithout the quotes). Then
when the question for the user name to add appears you should be able to 
enter every name matching the obove regex.
Thanks - this was the problem! :-) I'm used to the Linux way of adding 
users which doesn't have this setup phase - I just have to remember to 
use the -silent toggle when adding further users.

Thanks! :-)



On Thu, Jul 03, 2003 at 09:41:58PM +0300, Johan Paul wrote:

Hi,

I just installed FreeBSD 4.8 and tried to add a user to the system using 
'adduser foo'.

I get a few questions and then this:

-- 8 --
Don't worry about mistakes. I will give you the chance later to correct 
any input.
Enter username [foo]:
Please enter a username
Enter username [foo]: foo
Please enter a username
Enter username [foo]:
-- 8 --

...whatever I type in as username, the system rejects it.

I can add users via sysinstall. But this bothers me... what could be wrong?

Regards,

Johan Paul

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]




___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]