Can I create a user without specifying a login name

0

1

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.

shuji.koike

Posted 2013-05-28T11:34:30.643

Reputation: 1

Why would you want to do this? Why not just use the GID as the user name? What are you trying to achieve? – terdon – 2013-05-28T11:56:18.163

No it's not possible but you can hide the username at GDM (GNOME Display Manager)... – max – 2013-05-28T12:26:47.183

Hi! Keltari. Thanks for correcting my silly english mistakes. – shuji.koike – 2013-05-28T15:13:26.503

But I did ment "CUI" way. not a GUI like involving GNOME. – shuji.koike – 2013-05-28T15:15:04.947

Answers

1

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

slm

Posted 2013-05-28T11:34:30.643

Reputation: 7 449

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 – 2013-05-28T14:51:42.027