After an errant script in my .bash_profile created thousands of files on my computer and bogged it down to inoperable speeds I've managed to fix it by booting into single user mode and executing a find | rm combo. The offending script's pseudocode (which may look familiar to a recent post) is:
i=1
while(i > 0)
do
i=++
touch filename$i
done
While in SU I ran
fsck -fy
mount -uw
to allow for file system changes and deleted the impossible number of files. I have since removed the script from my bash profile as well. Although now my OSX partition runs smoothly, I cannot use my terminal, when launching it the error message:
login: -: Permission denied
[Process completed]
Does anybody have any insight into how I can fix the login permissions?
edit: I've tried using the repair permissions in Disk Utility, but to no avail.