[Ilugc] Dot in Username

  • From: roshan@xxxxxxxxx (Roshan George)
  • Date: Thu, 07 Jul 2011 18:10:17 +0530

On Thu, 2011-07-07 at 16:50 +0530, Rajesh kumar wrote:

I am using Ubuntu 10.04 and i am not able to create a user with "." say
rajeshkumar.k.
I have read that it will take rajeshkumar as user and k as group. How to
change this. I need to create the user using . and its mandatory.


The flag you have to pass to `adduser` is `--force-badname`. For
example:

        sudo adduser cow.goat --force-badname

Worked for me on Ubuntu 11.04. Unfortunately, I'm not really aware of
the consequences of doing this. You're probably better off choosing a
different username.

Regards,
-- 
Roshan George <roshan at arjie.com>


Other related posts: