I don't know why adduser doesn't like numbers for names.  I get the same
thing on RedHat 6.0.  I do know that you can do everything by hand.

First, make the appropriate entries in /etc/passwd, /etc/shadow, and
/etc/group.  You ought to be able to copy lines from existing user
entries, and make the few changes necessary.  If you don't know what the
fields in these files do, read the man pages: passwd(5), group(5), and
shadow(5).

In /etc/shadow, don't worry about copying the password hash.  Just leave
the field blank, and after you finish, run passwd to set the password.

Once that's done, you need to create the skeleton home directory.

# cp -a /etc/skel ~username/

and chown it, too.

# chown -R username:groupname ~username

This ought to do everything adduser does.  After setting the password, try
logging in as the user.

-Matt Stegman
<[EMAIL PROTECTED]>

On Thu, 20 Apr 2000, duncan wrote:

> I need to be able to add a user that is a number
> 
> When I try I get the following results.
> 
> [root@duncan www]# adduser 0413565739
> adduser: invalid user name `0413565739'
> 
> I have only tried this on cooker and 7.0 and dont know if this is
> something new or not.
> 
> Any thoughts?
> 
> Dunc
> 
> 
> 
> 
> -- //- Duncan Hall - SysAdmin Viator Systems +61 2 9211 2336 -//--
> 
> 

Reply via email to