I've been trying to find out exactly what characters can be used to form a usernames. Obviously letters and numbers are fine, but what about punctuation (i.e. "john.smith", "john-smith"). Does anyone have a list of what punctuation characters will work in usernames on HPUX11? Any other types I didn't list?
Thanks. Your reply helps me knock a few of the possible characters off the list however I need to know everything that is considered a valid character in a username. In this case I'm parsing usernames and need to know what are the possible characters I might encounter in any valid username. Even if it is bad practice I still need to know all the characters that may show up so I can deal with them. I'm just trying account for the less-than-savey HPUX system administrator who may not know the standard practice of creating Unix usernames.
The useradd command may be used with the "login" argument, where "login" is the new login name, specified as a string of printable characters. It may not contain : or a new line (\n).