How about providing us with some specs? Model and year of your Mac and which version of OS X is it using?
As a quick note... if you deleted something preventing you from logging on, you'll likely need to reinstall.
Unfortunately i have to be the guy who doesnt really know.. The iMac is from around 2008-2009..
So what I have done so far is to try a Safe Boot. The support page on the Apple site said
that this will include a automatic disc check and repair.. However Im not sure if that
worked at all because i still had to (try) to log onto the Daniel profile which didnt work.
And no difference was made after restarting again.
So instead i am now moving on to the Single User Mode and Fsck. I write the whole /sbin/fsck -fy and i do get a FILE SYSTEM WAS MODIFIED message (one time), even goes for some more rounds just in case.
I reboot but the problem is still there.
So instead i tried to create another user through the Fsck with
rm /var/db/.AppleSetupDone, which take me to the initial set-up screen however i can now not pass the
screen where you choose language (i click a language and the screen goes black
for a sec and then it turns back to the language screen again)
So i do "rm /var/db/.applesetupdone" and is now back to where i started..
Im thinking that maybe deleting the user ("rm - R /users/username") would be something that might work.. but then again i dont know..
Also im starting to think that some of the problem is in that i changed the account username
it says "Namn" at the login screen but as i wrote "Namn" cant be find in the system, but the old one "(Daniel") does.
... Any ideas? Is there anything I can do? Will the CD work? If i dont find the CD can i get another one?