1
vote
2answers
87 views

Change root password to be different than Admin password

I want to change the root password so it is different than the admin password. I need to change the password so the admin can still be logged on, but the root password to modify the hosts file ...
2
votes
3answers
2k views

How do I run sudo command from standard account?

From what I've read, it is good security approach to have two accounts, one admin and one standard. I am trying to run the following command in terminal on my standard account sudo mv ...
1
vote
3answers
892 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 ...
3
votes
5answers
25k 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 ...
8
votes
6answers
20k 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 ...
7
votes
3answers
85k 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! ...