osx - Mac - Allow user to run MAMP

08
2014-07
  • Indianer

    Whenever I start or quit MAMP, Mac OS asks me for the root password. Thats annoying. How can I prevent that? I use only 1 account on my OS. I want MAMP to be controlled without asking for the password.

  • Answers
  • Kevin Panko

    Try to use a port for Apache higher than 1024.

    Ports below that need root privileges.

  • Shanedroid

    There is a fix that was created by web developer Damian Gaweda that may be of use for you. He made a 'MAMP-No-Password App' (currently version 1.1) you can read about it and download it here. It makes use of an AppleScript 'AppDelegate.scpt' and enables you to run the startup scripts for Apache and Mysql using OSX's keychain. Check it out, it's a neat little hack!


  • Related Question

    osx - Running an application with root (or admin) privilages
  • Josh K

    I want to run MAMP Pro as root (or admin) under Mac OS X. MAMP starts up an Apache server on port 80 and because it's a low port, it I have to type my password in every time I start it up or shut it down.


  • Related Answers
  • jtimberman

    Edit the sudoers file and add an entry:

    sudo visudo
    
    joshk ALL=NOPASSWD: /path/to/apache2
    
  • Thilo

    Do you need Apache on port 80?

    If this is the only part that requires administrative permissions, it might be easiest (and safer) to just configure another port.