0
votes
1answer
31 views

Opening apache conf file with write permissions

I'm trying to open the /private/etc/apache2/httpd.conf file to make some changes. I thought I'd be able to open this with the correct permissions from the command line, so I tried: cd ...
1
vote
0answers
23 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 ...
0
votes
1answer
143 views

sudo: unable to cache user root, already exists

Suddenly started getting this strange error when attempting to run any command via sudo: sudo: unable to cache user root, already exists I've tried different Terminal windows, repairing ...
0
votes
1answer
253 views

Using visudo to edit sudoers on Mac

I have managed to make the sudoers file on my Mac erorr. eg. $ sudo visudo >>> /etc/sudoers: syntax error near line 45 <<< sudo: parse error in /etc/sudoers near line 45 sudo: no ...
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
1answer
127 views

Is it OK to run -sudo purge, frequently? [duplicate]

I'm on Mavericks 10.9.2, 24GB's RAM, and my usage constantly teters on 23.95 GB in use very frequently. From what I can tell, the largest running process is 'kernel_task', and even then it's less ...
1
vote
2answers
398 views

Installing / removing encfs

I'm trying to install encfs, for which I need brew. I installed brew, but installing encfs is a pain. bash-3.2$ brew install osxfuse Warning: osxfuse-2.6.2 already installed, it's just not linked ...
1
vote
2answers
59 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
0answers
62 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 ...
4
votes
1answer
3k views

Sudo keeps asking for password, despite that NOPASSWD already set

The following sudoers configuration used to work well in MacOS 10.8.5, several days ago I upgraded to Mavericks, NOPASSWD flag does not seem to work anymore: # User privilege specification root ...
0
votes
1answer
807 views

How to block and unblock the media ports in MAC OSX 10.9? [duplicate]

I am working on a test project that requires me to block all media ports on my Mac OS X 10.9. The instructions I'be veen given are "Chinese" to me :-) I have no idea how and where to start, let ...
0
votes
1answer
196 views

Cannot create a file with sudo in Apache web directory

Suddenly the following problem has happened: I have an Apache web directory at /www. Everything was ok with the permissions, but at some point (I can't realize what caused it), I become unable to ...
0
votes
1answer
6k views

su & sudo on OSX Mavericks

I am trying to use su and sudo on my iMac that I did a fresh clean install of Mac OS X 10.9 and Server 3.0. I explicitly set the password for root with passwd root but when I try to use su or sudo ...
0
votes
3answers
3k views

Issue installing MacPorts on Mavericks

I try to install MacPorts and get this $ sudo make install make: getcwd: Permission denied shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied ...
3
votes
1answer
601 views

Changing read permissions on /private/etc recursively

I was trying to make my /private/etc folder and all its contents world-readable. 'Permission denied' messages from a number of internal files and folders were a recurrent theme whenever I did a find ...
1
vote
2answers
170 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
0answers
377 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 ...
1
vote
0answers
48 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
2answers
3k 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
3answers
655 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 ...
3
votes
2answers
8k 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
2k 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 ...
3
votes
2answers
18k 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
464 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 ...
11
votes
4answers
7k 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 ...
3
votes
5answers
24k 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 ...