Run Terminal Command as root on Startup

Discussion in 'OS X Mountain Lion (10.8)' started by evilblob, Aug 1, 2012.

  1. evilblob macrumors member

    Jul 14, 2011
    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.

    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.
  2. Puevlo macrumors 6502a

    Oct 21, 2011
    Apparently you can use visudo to edit /etc/sudoers to add your own user to Sudo. Probably a bad idea though.

Share This Page