Well I had a quick play, it seems both adduser and useradd reject the name - but if it is shoehorned into /etc/passwd then other tools accept it, you just need to backslash escape the space (quoting works as well i.e. "Vision 5")
Code:
steeldriver@steeldriver-VirtualBox:~$ sudo adduser Vision\ 5
adduser: To avoid problems, the username should consist only of
letters, digits, underscores, periods, at signs and dashes, and not start with
a dash (as defined by IEEE Std 1003.1-2001). For compatibility with Samba
machine accounts $ is also supported at the end of the username
steeldriver@steeldriver-VirtualBox:~$
steeldriver@steeldriver-VirtualBox:~$ sudo useradd Vision\ 5
useradd: invalid user name 'Vision 5'
steeldriver@steeldriver-VirtualBox:~$
steeldriver@steeldriver-VirtualBox:~$ echo 'Vision 5:x:1001:1001:Vision 5,,,:/home/Vision 5:/bin/bash' | sudo tee -a /etc/passwd
Vision 5:x:1001:1001:Vision 5,,,:/home/Vision 5:/bin/bash
steeldriver@steeldriver-VirtualBox:~$
steeldriver@steeldriver-VirtualBox:~$ id Vision\ 5
uid=1001(Vision 5) gid=1001 groups=1001
steeldriver@steeldriver-VirtualBox:~$
steeldriver@steeldriver-VirtualBox:~$ sudo passwd Vision\ 5
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
steeldriver@steeldriver-VirtualBox:~$
Personally if I "inherited" computers I'd copy any important data off them and then do a clean install though
Bookmarks