We're trying to run our MacOS installer in an unattended mode; however it requires root privileges. The problem is that when using sudo to run the installer we're still getting prompted for the root password.

This is covered in 13.1. Requiring Administrator Privileges [http://installbuilder.bitrock.com/docs/installbuilder-userguide/ar01s13.html] where it says:

This will require the end user to have root privileges on Unix platforms (possibly using sudo to invoke the installer) or Administrator privileges on Windows. If the user does not have the appropriate privileges, an error will be displayed and the installer will exit. In the case of OS X, the user will be prompted with an Admin password dialog to raise its privileges.

Is there any work around we can use that will get the installer to honor the sudo command?

asked 08 Mar '13, 06:28

A%20Jefferiss's gravatar image

A Jefferiss
56151621
accept rate: 100%


Running the command as sudo shows the second, graphical password prompt - such as:

$ sudo ./installer.app/Contents/MacOS/installbuilder.sh

We will investigate options for improving this behavior.

However, as a workaround, you can run sudo against the installer binary (osx-intel) directly to avoid the second (graphical) password prompt:

$ sudo ./installer.app/Contents/MacOS/osx-intel

link

answered 10 Mar '13, 15:25

wojciechka's gravatar image

wojciechka ♦♦
7.8k61122
accept rate: 26%

Excellent, thanks I'll give that a test today. :)

(11 Mar '13, 04:05) A Jefferiss
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×6
×5
×3

Asked: 08 Mar '13, 06:28

Seen: 949 times

Last updated: 11 Mar '13, 04:05