Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Can I create a user without specifying a login name, and let GID used for it's login name? I read the man useradd(8), but this command seems to require a login name be set.

Any GUI way or script workaround would be appreciated.

My box is CentOS 6.4.

share|improve this question
    
Why would you want to do this? Why not just use the GID as the user name? What are you trying to achieve? –  terdon May 28 '13 at 11:56
    
No it's not possible but you can hide the username at GDM (GNOME Display Manager)... –  max May 28 '13 at 12:26
    
Hi! Keltari. Thanks for correcting my silly english mistakes. –  shuji.koike May 28 '13 at 15:13
    
But I did ment "CUI" way. not a GUI like involving GNOME. –  shuji.koike May 28 '13 at 15:15

1 Answer 1

No it's not possible to create a user without providing a username.

share|improve this answer
    
As above. If you think about it, it does not make sense how can you create a user without a username. Imagine having a nameless person. The closest thing to have a blank username is actually to have a "space" as a username.. assuming the OS is willing to accept that... (and to be honest, I really doubt they will accept that) –  Darius May 28 '13 at 14:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.