0

can anybody tell me how to create a ubuntu user with having '@'. With help of bellow link I found how to add period in username but haven't found any clue for '@' yet.

What are the disadvantages of having a dot in a user name?

1 Answers1

2

not sure why you would want to use such character in the user name, but here is one way (for username foo@t):

# useradd -m foo@t
# /bin/su - foo@t
$ id
uid=22284(foo@t) gid=22284(foo@t) groups=22284(foo@t)

then to set a password

# passwd foo@t

to delete such user (and all her/his files):

# userdel -r foo@t
muru
  • 197,895
  • 55
  • 485
  • 740