Tagged Questions
1
vote
3answers
101 views
How do I schedule a root command to run at intervals?
I need to run a script in intervals that requires a root user to execute. I created a plist that will call a script in ~/bin/test.sh.
user@MBP:~$ ls -lah ~/bin/
-rw-r--r-- 1 root staff 566B ...
0
votes
0answers
67 views
Difference between sudo and root for hdiutil (over afp)
A friend of mine has his TimeMachine volume on a NAS. That means it's a sparesebundle on the NAS disk.
When he tried to recover, he found that his TimeMachine image was hosed. Looking online, they ...
3
votes
4answers
7k views
How do I reset/recover my superuser password without the boot disk?
I lost the superuser password for my iMac and I don't have the boot disk. I already tried the second answer on this page, but every time I type su from the command prompt, it still asks for a ...
5
votes
6answers
11k views
How do I open a file as root in TextEdit on Lion?
How do I open a file as root, in TextEdit? I've tried these commands as root, but TextEdit always say it's locked:
open -e /etc/apache2/httpd.conf
open -e -F /etc/apache2/httpd.conf
open -e -F -W ...
4
votes
3answers
19k views
How do I run terminal in sudo mode?
I was trying to install npm, and I got
npm ERR! Error: EACCES, Permission denied '/usr/local/lib/node_modules'
npm ERR!
npm ERR! Please use 'sudo' or log in as root to run this command.
npm ERR!
...