Find the answer to your Linux question:
Results 1 to 8 of 8
I need to create a username with a dot (gerardo.barrera), but red hat 9 doesn't want to create it. It says "invalid user name". How can I create that user? ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2002
    Posts
    11

    Dot in username


    I need to create a username with a dot (gerardo.barrera), but red hat 9 doesn't want to create it. It says "invalid user name". How can I create that user?

    Thanks

  2. #2
    Just Joined!
    Join Date
    Sep 2004
    Location
    Cape Town, South Africa
    Posts
    83
    The 'useradd' program does not allow to create user with such a
    name.
    I think that it may be possible to create such a username manually (by
    editing
    the files /etc/passwd and /etc/shadow). However, many programs
    (including system utilities, such as 'useradd') may not work correctly
    with the names containing dot.

    On the other hand, some programs which use their own sets of users and
    their
    names (not the list of users from /etc/passwd) may allow user names with
    a dot.

  3. #3
    Linux Newbie imdeemvp's Avatar
    Join Date
    Sep 2004
    Location
    California
    Posts
    225
    adduser command will not let you do that...and i dont think you can edit the user name on fc2, once is set is a done deal.

  4. #4
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    Quote Originally Posted by imdeemvp
    adduser command will not let you do that...and i dont think you can edit the user name on fc2, once is set is a done deal.
    You can always edit the username...it just won't be the conventional way.

    Why, may I ask, would you want to create a username with a dot?
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

  5. #5
    Linux Newbie imdeemvp's Avatar
    Join Date
    Sep 2004
    Location
    California
    Posts
    225
    Why, may I ask, would you want to create a username with a dot? Confused
    i agree but it must be a personal preference too

  6. #6
    Just Joined!
    Join Date
    Jun 2004
    Location
    London, UK
    Posts
    53
    If the reason you need a dot in the username is to get that email address for the user just use a proper username and add an email alias to /etc/aliases.

    /etc/aliases example:
    Code:
    bob.the.builder: bob

  7. #7
    Just Joined! coolguy-in's Avatar
    Join Date
    Sep 2004
    Posts
    21

    Re: Dot in username

    YESSSSSSSSSSSSSSSSSSSSS you can do that .............. but not with that "useradd" (rhl 9's)

    You need to replace older useradd file (from redhat 6 or 7) it had a support for adding users with dots.

  8. #8
    Linux Newbie
    Join Date
    Apr 2004
    Posts
    158
    just att the users you want directly in you /etc/passwd file...

    when you are done do a
    Code:
    pwconv
    to update your shadow file...

    All tools to manage the account will work, i.e. passwd my.strange.username will work.


    Good luck

    Jonas

    (ps if you create it all manually you need to copy the files in the /etc/skel directory into the new users directory...)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •