execute a command as another user

learn more… | top users | synonyms

1
vote
2answers
72 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
78 views

Terminal command to arrange all files/folders by name on hard drive

Looking to tidy up my iMac. Like everyone, I have lots of files/folders on my iMac. When they get dragged and dropped, or moved around, they retain their position, and the only way to fix this is to ...
0
votes
2answers
172 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
29 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
67 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
573 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
59 views

Sudo giving dyld problem. Help for a beginner

I am new to using a macbook terminal. Initially when I used the terminal for working on Raspberry Pi everything was great. But now when I try to use the terminal and type sudo it keeps giving a dyld ...
0
votes
1answer
118 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
369 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 ...
2
votes
0answers
82 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
48 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
155 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
77 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
40 views

os.Popen command is not working

I'm writing a python script that is suppose to change default display settings for all users. I run the script as sudo because it needs to change every display. This line is suppose to change the ...
0
votes
0answers
25 views

OSX Flush DNS without sudo

I have a Mac that keeps messing up its DNS (this may be a wider network issue, we have windows clients that are having problems too). Whilst I try to understand the DNS issue I'd like to set an 'icon' ...
0
votes
0answers
170 views

SSH via sudo cron on Yosemite

I have a shell script that is supposed to run via cronjob on Yosemite, also when no user is logged in. I discovered the cron has to be edited with sudo crontab -e to do that. The script connects to ...
0
votes
0answers
20 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
448 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 ...