The sudo tag has no wiki summary.
1
vote
2answers
12 views
Is there a way to set an Application Shortcut in the Keyboard Preference Pane via Terminal?
I'd like to have a bootstrap for my custom keyboard shortcuts to use on multiple machines...
0
votes
1answer
30 views
cannot run sudo
I have a corporate account work on my macbook that has administrator privileges and created a non-administrative account local.
Logged in as local, when I tried a command with sudo, I got the ...
0
votes
2answers
26 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 ...
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 ...
0
votes
1answer
32 views
Mac asking for password for some files when deleting [duplicate]
This happens not for all files. When I move or delete some of the files on my external drive Finder will ask for password. Is it due to permission set on these files ? Can I use something like Sudo ...
2
votes
1answer
68 views
How can root launch a regular Mac application from a cron job in /etc/crontab?
I want the cronjob to do some things as the superuser, and depending on the result, launch an app as me, the logged-in user.
I've tried a bunch of things but nothing I think should work does.
...
1
vote
2answers
60 views
Password problems changing users in Terminal
I'd like to switch between the default user in Terminal and the user 'postgres', created when I installed PostgreSQL 9.2.
If I type su postgres, I'm prompted for a password that I don't know and ...
1
vote
0answers
29 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
312 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 ...
10
votes
4answers
6k views
Can sudo's annoying message be removed from Mountain Lion 10.8.0?
After the upgrade to 10.8.0, whenever I do a sudo, I always get this message:
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
I have ...
1
vote
2answers
141 views
Terminal returns not found for most commands Mac OSX
I'm really new to Mac OSX and UNIX based systems. I wanted to run a few Windows games on my Mac Mini so I started installing Wine and MacPorts.
Having done so, I typed in sudo port install wine and ...
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 ...
0
votes
0answers
64 views
sudo defaults read NSGlobalDomain AppleLanguages gives error
I know
defaults read NSGlobalDomain AppleLanguages
gives result correctly. But doing
sudo defaults read NSGlobalDomain AppleLanguages
gives
The domain/default pair of ...
3
votes
3answers
79 views
After typing sudo I can no longer autocomplete commands by pressing Tab
In a Terminal, if I type beginning of any command by pressing tab I can see the rest of that command.
However this feature does not work with any words I type after sudo.
How can I complete command ...
6
votes
2answers
400 views
allow sudo to another user without password
I want to be able to 'su' to a specific user, allowing me to run any command without a password being entered.
For example:
If my login were user1 and the user I want to 'su' to is user2:
I would ...
1
vote
3answers
105 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 ...
2
votes
2answers
224 views
How do I give a user sudo permissions?
On my computer I have two accounts: geoff and admin. I want to do gacutil.... Doing it in account geoff (where I need it to be done) I get the message:
gac directories could not be created, possibly ...
3
votes
1answer
179 views
whoami is not who I am!
I login into my own computer as username geoff. When I open a terminal I have as prompt:
Geoffs-MacBook-Air:~ org1$
The org1 is my work username! I have no login of that username for this computer ...
2
votes
3answers
1k views
Why does sudo ask for a password in terminal?
Why does sudo ask for a password when one can sudo su without a password and perform the same commands? Is there a way to make sudo not ask for a password when you're logged in as the an admin anyway?
...
0
votes
1answer
52 views
Why is sudo running so many times?
I've just noticed that my mac has loads of sudo processes running – why? What is causing them?
0
votes
0answers
68 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
3answers
2k views
How can I execute sudo commands as a cron job?
I'm trying to execute a shell script as a cron job. The problem is that my script needs to be run as a super user. I tried it with just writing sudo infront of the command in my crontab file, but it ...
1
vote
1answer
533 views
dyld message when launching commands as sudo
When I launch a command from the shell as super user I always get back the following message:
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or ...
2
votes
3answers
7k views
terminal sudo or su asks for password in Mountain Lion OS X
I don't know the root password on my system and I'm trying to start Apache.
$ sudo apachectl start
WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important ...
1
vote
1answer
100 views
How do I run BeyondCompare in X11 as root?
I used WineBottler to install Beyond Compare on my Mac.
It runs within an X11 environment. (It works great, by the way.)
But it cannot access many folders to which my user account does not have ...
0
votes
1answer
61 views
File has different owner if examined using `sudo`
I have some files backed up on an external HD, and according to Finder they're all owned by my standard user account. According to Terminal, however, they're owned "unknown" if I look at them using ...
1
vote
1answer
286 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 ...
1
vote
0answers
467 views
How to avoid the GUI password prompt when using `osascript`?
I’d like to use the osascript shell command to run some AppleScript, but I’d rather avoid the GUI password prompt. Instead, I’d prefer to run the script as sudo from the command-line, so no GUI ...
1
vote
1answer
289 views
Why can't I chmod to make a file executable without sudo?
On OS X 10.6.8, I made a small script file in my home directory and tried to make it executable. Surprisingly, I found that chmod had no effect until I ran it as super-user. I own and have write ...
0
votes
0answers
279 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 ...
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!
...
3
votes
1answer
227 views
Can sudo use my existing aliases?
How can I let sudo use my existing aliases in my .bash_profile (or .bashrc, .profile …)?
For example I want to be able to use ll instead of ls -laGF as sudo.
4
votes
2answers
4k views
Installing Homebrew on Lion
I am trying to install Homebrew on Lion but keep getting an error.
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
I run the above code, which results in:
==> This script ...
1
vote
1answer
493 views
How do I save ftp.plist file when using sudo nano?
I edited ftp.plist by using sudo nano in terminal, and I saved by control + O but after reboot, it changed again. How can I save the file?
1
vote
1answer
225 views
sudo password incorrect all of a sudden
sudo ls
All of a sudden it says password incorrect. I am 100% sure of my password. I don't know what happened. Hacked ?
10
votes
1answer
4k views
Where will the incident be reported to?
If a non-admin types a sudo command in Terminal, this will appear after they enter their password:
User is not in the sudoers file. This incident will be reported.
Where is this reported to?
1
vote
1answer
70 views
Sudo with Sidekick
Sidekick is a helpful little tool which adjusts the system settings based on geographical location.
I added an action which will execute a sudo command-line command. The problem is that the Terminal ...
2
votes
2answers
811 views
User changed to 502 on OSX
I have a small problem with my permissions. I use rsync frequently on a certain target directory, but one day I by accident I used "sudo rsync", and now all my permissions for the files in the ...
0
votes
2answers
1k views
Lion Terminal remembers sudo password after quitting
I've been using Lion since its release, and I noticed today, for the first time, that Terminal did not prompt me for a password when I typed in a sudo command, if I close and reopen Terminal within ...
2
votes
2answers
2k views
Why can't I run `su`? (and how should I do?)
Whenever I try to issue su I get this:
$ su
Password:
su: Sorry
Needless to say, I'm entering the correct admin password which does work with sudo. What I want is not having to enter sudo each ...

