"Richard L. Hamilton" <rlha...@smart.net> wrote:

> > Hi, I have researched online in order to solve this
> > and didn't find any information. [b]Could you please
> > how can I create a new username (numbers based) eg.
> > 0000-0000?[/b]
> > 
> > please let me know, I'll apretiate your kindly
> > help!!!!!!!
> > 
> > bergmp at gmail dot com
>
> Accounts can be created with the "useradd" command.
>
> Limits on the username are listed in passwd(4):
>
> http://docs.sun.com/app/docs/doc/819-2251/passwd-4?l=en&a=view
>
> The format you desire exceeds the recommendations, if not the
> absolute limits, on both length and characters used.
>
> That said, _most_ software will probably work anyway with anything 32
> characters or less (and not permitting colon or newline characters within
> the username), but older software (or software that exchanges the
> information with other systems) may not.
>
> Some older programs may assume that
> /usr/include/stdio.h:#define  L_cuserid       9
> could specify the size of an array of characters (including null terminator)
> sufficient to hold a username.

POSIX.1-1988 did already mention a limit of 32 chars for user and group names 
in TAR headers. At that time, all traditional UNIX utilities used a limit of 8 
chars.

Since Solaris removed /var/adm/?tmp and only /var/adm/?tmpx are present now, 
the number os utilities that still use a lower limit may be close to 0.

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       j...@cs.tu-berlin.de                (uni)  
       joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to