LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   User ID (https://www.linuxquestions.org/questions/linux-newbie-8/user-id-769630/)

elainelaw 11-17-2009 04:47 AM

User ID
 
In my redhat v3 system , it do not allow to create the userid which is block letter ( ABC ) , but it is strange that I have another Redhat v3 system , it allow to do it , can advise how to let the userid with block letter ? thx


useradd -g xxx -d /home/xxx/ABC ABC

useradd: invalid user name 'ABC'

JohnGraham 11-17-2009 05:48 AM

Quote:

Originally Posted by elainelaw (Post 3759772)
useradd -g xxx -d /home/xxx/ABC ABC

useradd: invalid user name 'ABC'

That's... strange. You should be able to do that.

Are you running the command as the root user? Could you cut and paste (literally - don't type it out) from a terminal session where you enter that command with a real gid?

John G

druuna 11-17-2009 05:52 AM

Hi,

Officially this is the legal template for a username:

[a-z_][a-z0-9_-]*

Adduser (useradd) and shadow are kinda sensitive to this.

But that does not explain why one RH3 system allows capitals and the other RH3 system does not.


All times are GMT -5. The time now is 12:40 AM.