execute a command as another user

learn more… | top users | synonyms

1
vote
2answers
62 views

Unable to start computer after using sudo crontab -e

I've set it so that my Mac will forcefully shutdown at 12:00 everyday. But I try to turn it back on, it shuts down again right after.
0
votes
2answers
152 views

Upgrading from sudo 1.7.4p6 to 1.8.6p7 on OS X 10.7.5

I downloaded sudo for os x 10.7 from the following link, I followed the readme instructions, but when I call sudo -V I still get the old version number. I can see the folders related claim to have ...
1
vote
1answer
21 views

Access to sudo but not security and privacy or users and groups

How can I add myself to these groups so that I can have access to these areas in system preferences? I have sudo access but I'm not sure how to accomplish this through terminal.
1
vote
1answer
38 views

Rsync fails due to Sudo timeout

I am trying to run a lengthy Rsync (local machine only, no ssh, no lan or wan connects involved) but Sudo is timing out and the script fails. Total runtime of the command is about 20 mins. What is the ...
1
vote
1answer
509 views

How do System Preferences remain unlocked?

To make certain modifications to system preferences, you first need to unlock the preference pane. Some of these changes are done on a system level and the command-line equivalent would need to be ...
0
votes
1answer
60 views

Recovering files deleted via sudo

I deleted some files via sudo rm -rf ~/.Trash/* - unfortunately I accidentally moved a folder from the Desktop into there and can't seem to recover it. I only use this command now and then, when I ...
0
votes
1answer
234 views

Help me reset the terminal after sudo command mistake

I recently installed a cracked version of a program and it instructed me to block outgoing connections by following the instructions below. Step 1 Click the "Go" menu, select "Utilities," and then ...
1
vote
0answers
18 views

Terminal 3 failed password attempts

I've got a really funny issue with my Mac at the moment. I was using a sudo command and it rejected my password 3 times (I double checked and the password was correct) but now I can't do anything as ...
1
vote
0answers
35 views

What is a reasonable command to prompt for sudo password with sudo -A?

My question is definitely related to What option should I give the sudo command to have the password asked through a graphical interface? But my question is slightly different. I know how to use sudo ...
1
vote
0answers
120 views

Sudo works for a whole day and then stops working until a reboot

I currently have admin access to a Macbook Pro running OSX 10.8.4. I have been sudoing at the terminal for the whole day with no restart until sudo stops working. I rebooted the operating system and ...
1
vote
0answers
56 views

allow sudo only at a specific time of day

Is it possible to configure sudo so that it only works at a specific time of day, say, from 9AM to 10AM? In Linux, this can be done by editing /etc/security/time.conf, but I don't know if this is ...
1
vote
0answers
1k views

My MBP (13 inch, MID 2010) will not start up

I have used the internet for the past 2 weeks in search of something that will help me troubleshoot/repair my MBP. It wont boot in Safe Mode using the SHIFT key. Following is everything I have tried ...
0
votes
0answers
19 views

2 usercodes on one machine

I have to run two usercodes on my MacBook Pro (running OSX 10.9.2), because my university insists that certain operations on the university system (the only crucial operation is printing) can only be ...
0
votes
0answers
87 views

How to grant permission to application permanently

I have an application starts automatically when i'm logged in that changes some internet settings for me. I have to enter my password every time, that's quite annoying. Is there any way I can grant ...
0
votes
0answers
375 views

How can I play a sound from the command line running as sudo?

While typing afplay danger.mp3 in the Terminal will play the .mp3, doing sudo afplay danger.mp3 or sudo su and then afplay danger.mp3 does not. Any idea why is this? How can I use the afplay command ...