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
-
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.– karelMay 8, 2018 at 7:01
-
Spaces are normally used in the shell to separate arguments.– karelMay 8, 2018 at 7: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– steeldriverMay 8, 2018 at 12:00
Add a comment
|
1 Answer
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
.
-
yes thats true, my question would be how did you create a linux user with space in name.– WiKrIeMay 8, 2018 at 7: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.– ob2May 8, 2018 at 8:42