Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

evilblob

macrumors member
Original poster
Jul 14, 2011
61
0
Hi guys,

Can anyone help me run a terminal command at startup, but as the root user, in 10.8? I have recently bought an OCZ SSD that is having trouble with Mountain Lion, but have found a temporary workaround, that involves deleting a file between one boot and the next. (see here)

The command I need to run is as follows, and as stated I would like to run this at startup.

Code:
sudo rm -f /private/var/db/BootCache.playlist

I can enter the password if need be, but would obviously prefer I didn't have to.

Thanks in advance.
 

Puevlo

macrumors 6502a
Oct 21, 2011
633
1
Apparently you can use visudo to edit /etc/sudoers to add your own user to Sudo. Probably a bad idea though.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.