I'm having difficulties resetting admin password on my Ubuntu 12.04 if the username has a space eg. Buggs Bunny? At the prompt it will only display Buggs and wont allow the password command to work
Asked
Active
Viewed 353 times
0
-
5Possible duplicate of How to write the path of a folder with space in its name? and How do I enter a directory with special characters in its name? Preceding the space character with a backslash \ makes the shell interpret it as a literal space character. – karel May 08 '18 at 07:01
-
Spaces are normally used in the shell to separate arguments. – karel May 08 '18 at 07:08
-
3This sounds like an XY problem - you are likely confusing the Unix username with the GECOS "fullname" that is used by the GUI login display. See the similar Cannot login through the command line – steeldriver May 08 '18 at 12:00
1 Answers
1
As far as I know, there is no way to have a username with a space, you are probably taking about the display name. Have a look of the real username from cat /etc/passwd
.

ob2
- 3,553
-
yes thats true, my question would be how did you create a linux user with space in name. – WiKrIe May 08 '18 at 07:43
-
1It's simply not possible, I'm pretty sure that Buggs Bunny is the display name and Buggs is the username. Change the password with
passwd buggs
should be enough. – ob2 May 08 '18 at 08:42