Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > OS X > OS X 10.8 Mountain Lion

Reply
 
Thread Tools Search this Thread Display Modes
Old Aug 2, 2012, 01:06 AM   #1
evilblob
macrumors member
 
Join Date: Jul 2011
Run Terminal Command as root on Startup

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.
evilblob is offline   0 Reply With Quote
Old Aug 2, 2012, 01:25 AM   #2
Puevlo
macrumors 6502a
 
Join Date: Oct 2011
Apparently you can use visudo to edit /etc/sudoers to add your own user to Sudo. Probably a bad idea though.
Puevlo is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X > OS X 10.8 Mountain Lion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Terminal run on startup command Zogw Mac Applications and Mac App Store 7 Jan 26, 2013 10:24 AM
How to type curly quote in Terminal as root? esskay Mac OS X 10.7 Lion 2 Jan 19, 2013 09:05 PM
THIS IS DANGEROUS, root access inside a Terminal. wisecracker MacBook Pro 9 Nov 1, 2012 05:59 PM
run terminal command current finder window SniperUK Mac Applications and Mac App Store 3 Jul 30, 2012 01:52 PM
Terminal - SSH as Root, No ANSI Colours Kilamite Mac Applications and Mac App Store 3 Jun 30, 2012 10:45 AM

Forum Jump

All times are GMT -5. The time now is 03:43 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC