Run Terminal Command as root on Startup

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

  1. macrumors member

    Joined:
    Jul 14, 2011
    #1
    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.
     
  2. macrumors 6502a

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

Share This Page