RE: How to create username with "."







Marq wrote:
Hi

When i create username like this
"useradd user.name"
It shows the error message saying that the name contains invalid characters

It is bad idea to create such users. For example, chown command accepts
argument of type "user.group". You should stick with letters and numbers.


The chown(1) man page says that a colon ":" is the delimiting character:

NAME
chown - change file owner and group

SYNOPSIS
chown [OPTION]... [OWNER][:[GROUP]] FILE...


My advice to Marq would be to use a dummy username, and then manually edit the passwd and shadow files. We've been using usernames like first.m.last for several years to maintain compatibility with another operating system; the users don't like having to use the long usernames but it works.
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

Relevant Pages

  • Re: How to create username with "."
    ... When i create username like this ... "useradd user.name" ... It shows the error message saying that the name contains invalid characters ...
    (RedHat)
  • How to create username with "."
    ... "useradd user.name" ... It shows the error message saying that the name contains invalid characters ... Is there any way to create username like that, ...
    (RedHat)