Operating System - HP-UX
1752440 Members
5996 Online
108788 Solutions
New Discussion юеВ

user with special characters

 
Fahad Imran Butt
Occasional Contributor

user with special characters

I need to create a user on OS level with some special characters. I am using HPUx11.11.
e.g
James.M
Stefan_h

please guide me how it can be created through SAM. If not by SAM then please let me know the syntax for the command line..
Thanks!
4 REPLIES 4
Robert-Jan Goossens
Honored Contributor

Re: user with special characters

Fahad Imran Butt
Occasional Contributor

Re: user with special characters

This doesn't solve the issue.
in the help it doesn't tells to create a user with special characters as mentioned in my above message.
Dennis Handly
Acclaimed Contributor

Re: user with special characters

>in the help it doesn't tells to create a user with special characters

useradd(1m) is very specific:
The useradd login command defines the new login name, specified as a string of printable characters. login can not contain a colon (:) or a newline (\n).
http://docs.hp.com/en/B2355-60130/useradd.1M.html
OldSchool
Honored Contributor

Re: user with special characters

be careful of characters such as @, $, and others that are "special" to the login process / tty driver, as, if used, they will need to be "escaped" when entered by the user.


for example, user id of bad#form might need to be entered as bad\#form.

I've never had a "need" to create such userids, only misguided requests.....