Hutch76 wrote:
It's strange - as I have tried to log in but don't have the password.
If the current macOS you are logged into is not an "admin", then your only option is to attempt to reset the password of the other user account using the instructions in the following Apple article:
If you forgot your Mac login password - Apple Support
If you cannot do so, then you will need to start over with a clean install which involves first erasing the disk (or rather deleting the "Volume Group") followed by reinstalling macOS & restoring from a backup.
This has been my Mac for 4 years and I have never set up a second user account. I set the mac up from scratch. Any idea how this could have happened?
Or perhaps you restored from a Time Machine backup. Depending how you restore the backup, if TM sees you already have a particular user name on the system, you will be presented with an option to remove the current user or to rename the user account that is being restored (I think that is correct, I know you get an option to rename one of the accounts).
However, as @Barney-15E mentions.....your screenshot looks exactly like what happens when a user attempts to rename their user account & does so incorrectly (very common). When initially creating a macOS user account, the installer will take the Long Name you provided and remove the spaces for the Short Name. For example during initial setup if you provided the Long Name "Steve Jobs", then the short user name would become "stevejobs". That seems to be the case with the second user shown in your screenshot "markhutchens". The first user account with all the red circles on the folders is one where the short user name "mark" was customized either during the initial setup, or later on when someone tried to change it which would have resulted in exactly what we see in your screenshot.